summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/raw/rawnotify.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/libcli/raw/rawnotify.c b/source4/libcli/raw/rawnotify.c
index b277a2c7da..2155076dd7 100644
--- a/source4/libcli/raw/rawnotify.c
+++ b/source4/libcli/raw/rawnotify.c
@@ -155,11 +155,8 @@ NTSTATUS smb_raw_ntcancel(struct smbcli_request *oldreq)
* smbcli_request_send() free's oneway requests
* but we want to keep it under oldreq->ntcancel
*/
- if (!talloc_reference(oldreq, req)) {
- talloc_free(req);
- return NT_STATUS_NO_MEMORY;
- }
req->do_not_free = true;
+ talloc_steal(oldreq, req);
smbcli_request_send(req);