s3:smb2cli_base: smb2cli_req_send() needs to call tevent_req_post() on error
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Jul 2011 12:38:33 +0000 (14:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 2 Aug 2011 02:54:28 +0000 (04:54 +0200)
metze

source3/libsmb/smb2cli_base.c

index 88b890438ab328e69c6defd17bbcc7725f36c1a7..e7ba5175a3d06590066a4ed862826266fa6d485e 100644 (file)
@@ -321,7 +321,7 @@ struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx,
                return NULL;
        }
        if (!tevent_req_is_in_progress(req)) {
-               return req;
+               return tevent_req_post(req, ev);
        }
        status = smb2cli_req_compound_submit(&req, 1);
        if (tevent_req_nterror(req, status)) {