]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix possible null dereference in create 1302/head
authorSage Weil <sage@inktank.com>
Sun, 23 Feb 2014 18:18:02 +0000 (10:18 -0800)
committerSage Weil <sage@inktank.com>
Sun, 23 Feb 2014 18:18:02 +0000 (10:18 -0800)
commit23e538efa4f0c59b65fb55a0e27bbf0cf2480c01
tree5aa8fddc4bfdda0a5918a7f6a593afff928ba8d8
parentbcc18d4877cc7ecf0476c1ddfa85aa36ece5697a
client: fix possible null dereference in create

There are two paths that jump to the out label for which 'in' can be
NULL and outp can be non-NULL.  For those cases we want to fill in the
caller's pointer value (they asked for it) but we clearly cannot take
a reference.

Backport: emperor, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
src/client/Client.cc