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:
parent
4b64ec546f
commit
111c2159de
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user