From: Jeremy Allison Date: Wed, 18 Mar 2020 21:32:30 +0000 (-0700) Subject: s3: smbd: In asnyc do_smb1_close() use the utility function meant for async SMB1... X-Git-Tag: ldb-2.2.0~1294 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20290d02a09af16c6f250cd063c910c5fee1cad0;p=thirdparty%2Fsamba.git s3: smbd: In asnyc do_smb1_close() use the utility function meant for async SMB1 replies. Don't use the raw call. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 47fdd8e3f74..53e6ab8c647 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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); } /****************************************************************************