1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +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 {
reply_nterror(smbreq, status);
}
if (!srv_send_smb(smbreq->sconn, smbreq->outbuf, true,
smbreq->seqnum+1, encrypt, NULL)) {
if (!srv_send_smb(smbreq->sconn,
smbreq->outbuf,
true,
smbreq->seqnum+1,
IS_CONN_ENCRYPTED(smbreq->conn)||smbreq->encrypted,
NULL)) {
exit_server_cleanly("handle_aio_read_complete: srv_send_smb "
"failed.");
}