libceph: fix osdmap decode error paths
authorSage Weil <sage@inktank.com>
Mon, 29 Oct 2012 18:01:42 +0000 (11:01 -0700)
committerAlex Elder <elder@inktank.com>
Tue, 30 Oct 2012 13:21:05 +0000 (08:21 -0500)
Ensure that we set the err value correctly so that we do not pass a 0
value to ERR_PTR and confuse the calling code.  (In particular,
osd_client.c handle_map() will BUG(!newmap)).

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>

No differences found