]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Monitor.cc: fix potential null deref 5000/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 14 Jul 2015 07:14:56 +0000 (09:14 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 Jul 2015 08:50:46 +0000 (10:50 +0200)
commitd8138c80d1e53526b97be748e2bbe003d6b180bb
tree01c33500bf05ab6e12cf70ba8880ce4cc79680f3
parentbe7e07a52871e16e8a46accde6171077cca8db5a
mon/Monitor.cc: fix potential null deref

Add assert to MonSessionMap::new_session().

Fix for:

CID 1128408 (#1 of 1): Dereference before null check (REVERSE_INULL)
 check_after_deref: Null-checking s 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
src/mon/Session.h