]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: fix use without NULL check in rados_pool_list
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 24 Sep 2012 22:03:56 +0000 (15:03 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 25 Sep 2012 00:42:13 +0000 (17:42 -0700)
commita677f47926b9640c53fbd00c94d6eb7a590a94fc
treed01588ce602bb04b411afc264f885576bf36696e
parenta5c7776144a4bac83119e7ddfd225b8170ff0164
librados: fix use without NULL check in rados_pool_list

CID 716911: Dereference after null check (FORWARD_NULL)
At (5): Passing null pointer "b" to function "strncat(char *, char
const *, size_t)", which dereferences it. (The dereference is assumed
on the basis of the 'nonnull' parameter attribute.)

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librados/librados.cc