]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In asnyc do_smb1_close() use the utility function meant for async SMB1...
authorJeremy Allison <jra@samba.org>
Wed, 18 Mar 2020 21:32:30 +0000 (14:32 -0700)
committerRalph Boehme <slow@samba.org>
Mon, 23 Mar 2020 09:40:45 +0000 (09:40 +0000)
Don't use the raw call.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/reply.c

index 47fdd8e3f74c38f3f27276f137982e5122b89d33..53e6ab8c64747624eb85a453b6a9545ba50c1b2c 100644 (file)
@@ -6137,16 +6137,12 @@ static void do_smb1_close(struct tevent_req *req)
        } else {
                reply_nterror(smb1req, status);
        }
-       if (!srv_send_smb(smb1req->xconn,
-                       (char *)smb1req->outbuf,
-                       true,
-                       smb1req->seqnum+1,
-                       IS_CONN_ENCRYPTED(smb1req->conn)||smb1req->encrypted,
-                       NULL)) {
-               exit_server_cleanly("handle_aio_read_complete: srv_send_smb "
-                                   "failed.");
-       }
-       TALLOC_FREE(smb1req);
+       /*
+        * The following call is needed to push the
+        * reply data back out the socket after async
+        * return. Plus it frees smb1req.
+        */
+       smb_request_done(smb1req);
 }
 
 /****************************************************************************