summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-07-23 10:20:26 -0700
committerJeremy Allison <jra@samba.org>2012-07-23 20:15:33 +0200
commit111c2159de6e417e7912dc8b26f6d3a2ce20de20 (patch)
treea5660f1c5519dac0ecff9d5982125c5d851503da /source3
parent4b64ec546f0cb982866b1f66aa8f8844f25c91c9 (diff)
downloadsamba-111c2159de6e417e7912dc8b26f6d3a2ce20de20.tar.gz
samba-111c2159de6e417e7912dc8b26f6d3a2ce20de20.tar.bz2
samba-111c2159de6e417e7912dc8b26f6d3a2ce20de20.zip
Fix problem found by Andrew Bartlett - correctly check encrypted flag.
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 2022af72b0..97abc859a0 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -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.");
}