Diff between 4f4c120e88f0c1ad9c93e081181223a48b8df625 and 18f5d44059d0420035888c8322c2e5f3e4629efd
Changed Files
| File | Additions | Deletions | Status |
| obexd/gwobex/obex-priv.c | +2 | -3 | modified |
Full Patch
diff --git a/obexd/gwobex/obex-priv.c b/obexd/gwobex/obex-priv.c
index 86e9dd9..76a9599 100644
--- a/obexd/gwobex/obex-priv.c
+++ b/obexd/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) {