libcli: Add tevent_req_received() calls to smb2cli_create_recv()
authorVolker Lendecke <vl@samba.org>
Tue, 9 Jun 2020 16:54:07 +0000 (18:54 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 15 Jun 2020 17:59:39 +0000 (17:59 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smb2cli_create.c

index 778b501fae72028c24752184b838059bd4a60322..325bc79f9cd6ed0a2cd11d49d566d9ece6d1c75d 100644 (file)
@@ -249,6 +249,7 @@ NTSTATUS smb2cli_create_recv(struct tevent_req *req,
        NTSTATUS status;
 
        if (tevent_req_is_nterror(req, &status)) {
+               tevent_req_received(req);
                return status;
        }
        *fid_persistent = state->fid_persistent;
@@ -260,6 +261,7 @@ NTSTATUS smb2cli_create_recv(struct tevent_req *req,
                blobs->num_blobs = state->blobs.num_blobs;
                blobs->blobs = talloc_move(mem_ctx, &state->blobs.blobs);
        }
+       tevent_req_received(req);
        return NT_STATUS_OK;
 }