From b9d052c72874de91ffabc2fb75e1af57e0d4f839 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 15 Aug 2010 11:33:05 +0200 Subject: s3: Remove smbd_server_fd() from construct_reply --- source3/smbd/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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, -- cgit