diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-04-27 11:01:22 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-04-29 22:30:08 +0300 |
commit | 6618552692a48bdfe09a507276201945a421f493 (patch) | |
tree | 223b23ccdab1724371f75cb963e058b10658c787 | |
parent | bb2670bfdf31bfd2baf4c557d48dbd07a7d7a319 (diff) | |
download | obexd-6618552692a48bdfe09a507276201945a421f493.tar.gz |
Fix possible null pointer deference.
-rw-r--r-- | gwobex/obex-priv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gwobex/obex-priv.c b/gwobex/obex-priv.c index 86e9dd9..76a9599 100644 --- a/gwobex/obex-priv.c +++ b/gwobex/obex-priv.c @@ -971,16 +971,15 @@ gboolean gw_obex_put(GwObex *ctx, return FALSE; } - ctx->obex_op = OBEX_CMD_PUT; - if (remote) { uname_len = get_uname(&uname, remote); if (uname_len < 0) { ctx->error = GW_OBEX_ERROR_INVALID_PARAMS; - goto out; + return FALSE; } } + ctx->obex_op = OBEX_CMD_PUT; ctx->xfer = gw_obex_xfer_new(ctx, async, stream_fd); if (local) { |