]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Monitor.cc: fix potential null deref
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 11 Jun 2015 13:39:43 +0000 (15:39 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 Jul 2015 08:50:44 +0000 (10:50 +0200)
commit0292f96ec93544175d0048ee39727c4de5fd92e5
tree6ec951a0ca6bdb98bc511f97933f98ae43826ca5
parenta48286e1ebd666054a34233fe4bdf5872e535d66
mon/Monitor.cc: fix potential null deref

Access logger object in remove_all_sessions() only if the
object exists.

Fix for:

CID 1225102 (#1 of 1): Dereference before null check (REVERSE_INULL)
 check_after_deref: Null-checking this->logger suggests that it may be
 null, but it has already been dereferenced on all paths leading to the
 check.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/Monitor.cc