summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-15 11:33:05 +0200
committerVolker Lendecke <vl@samba.org>2010-08-16 22:39:24 +0200
commitb9d052c72874de91ffabc2fb75e1af57e0d4f839 (patch)
treecc6ccb3d2050b34ce92a2f49bb8fd5377af881e3
parent61989a9e54ef0ded0fbf2d5353aa8d0c0e34e409 (diff)
downloadsamba-b9d052c72874de91ffabc2fb75e1af57e0d4f839.tar.gz
samba-b9d052c72874de91ffabc2fb75e1af57e0d4f839.tar.bz2
samba-b9d052c72874de91ffabc2fb75e1af57e0d4f839.zip
s3: Remove smbd_server_fd() from construct_reply
-rw-r--r--source3/smbd/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index c3240e806d..0ec5adf684 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1571,7 +1571,7 @@ static void construct_reply(char *inbuf, int size, size_t unread_bytes,
if (req->unread_bytes) {
/* writeX failed. drain socket. */
- if (drain_socket(smbd_server_fd(), req->unread_bytes) !=
+ if (drain_socket(req->sconn->sock, req->unread_bytes) !=
req->unread_bytes) {
smb_panic("failed to drain pending bytes");
}
@@ -1591,7 +1591,7 @@ static void construct_reply(char *inbuf, int size, size_t unread_bytes,
show_msg((char *)req->outbuf);
}
- if (!srv_send_smb(smbd_server_fd(),
+ if (!srv_send_smb(req->sconn->sock,
(char *)req->outbuf,
true, req->seqnum+1,
IS_CONN_ENCRYPTED(conn)||req->encrypted,