]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
src/librbd/librbd.cc: fix potential null pointer deref
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 7 Nov 2014 15:52:04 +0000 (16:52 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 11 Nov 2014 12:26:38 +0000 (13:26 +0100)
commitdbfb63e8e87c173029040d48bc088930af49bd2c
tree996971a76f06a495ec75a120556bcab1fcb08644
parent4fc9428506072705c5e7d5456b81b02ac6661a5e
src/librbd/librbd.cc: fix potential null pointer deref

Fix potential deref after null check. Move check for max_snaps in
rbd_snap_list up to fail early before call any functions.

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