]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: Resolves coverity NULL dereference issue
authorSam Lang <sam.lang@inktank.com>
Tue, 2 Oct 2012 15:43:05 +0000 (10:43 -0500)
committerSage Weil <sage@inktank.com>
Tue, 2 Oct 2012 16:27:50 +0000 (09:27 -0700)
commit14de7a5336f2d8510090825b8ff47ea42d8e2e59
tree49adf8d7a3eeaaa950daa7892b8a0dfd5dba5fde
parentd250bb85f06614b1899e40b3661171806cca3c9c
client: Resolves coverity NULL dereference issue

Client::insert_trace() was handling readdir and lssnap replies
assuming that the directory inode was not null.  This commit
checks that the directory inode (returned as part of the trace)
is not null, and invokes insert_readdir_results() for the readdir
and lssnap replies.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/client/Client.cc
src/client/Client.h