1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Fix problem found by Andrew Bartlett - correctly check encrypted flag.

This commit is contained in:
Jeremy Allison 2012-07-23 10:20:26 -07:00
parent 4b64ec546f
commit 111c2159de

View File

@ -4944,8 +4944,12 @@ static void do_smb1_close(struct tevent_req *req)
} else { } else {
reply_nterror(smbreq, status); reply_nterror(smbreq, status);
} }
if (!srv_send_smb(smbreq->sconn, smbreq->outbuf, true, if (!srv_send_smb(smbreq->sconn,
smbreq->seqnum+1, encrypt, NULL)) { smbreq->outbuf,
true,
smbreq->seqnum+1,
IS_CONN_ENCRYPTED(smbreq->conn)||smbreq->encrypted,
NULL)) {
exit_server_cleanly("handle_aio_read_complete: srv_send_smb " exit_server_cleanly("handle_aio_read_complete: srv_send_smb "
"failed."); "failed.");
} }