notifyd: prevent NULL deref segfault in notifyd_peer_destructor
commitc4c86063c9fa789809cf88ac1ed56ab8deb2f737
authorMichael Adam <obnox@samba.org>
Fri, 20 May 2016 10:57:48 +0000 (20 12:57 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 31 May 2016 06:58:21 +0000 (31 08:58 +0200)
treef2178225de0aef40d463b87fbe776daaa81a2b4f
parent730ec25f3b11d421888714d3c86273f81b844fde
notifyd: prevent NULL deref segfault in notifyd_peer_destructor

It seems it could happen that p->db == NULL in the list
from notifyd_clean_peers_next(). This has been seen in
a ctdb cluster when an node-internal ctdb interface is
brought down.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11930

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri May 20 17:32:55 CEST 2016 on sn-devel-144

(cherry picked from commit 1c76746b637bc1867f85ba94786b89f22d1b0c32)
source3/smbd/notifyd/notifyd.c