s3: Remove smbd_server_fd from handle_aio_read/write_complete
authorVolker Lendecke <vl@samba.org>
Sat, 14 Aug 2010 12:54:13 +0000 (14:54 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 16 Aug 2010 20:39:16 +0000 (22:39 +0200)
source3/smbd/aio.c

index cd756c47dd4f6d258c869db9661e7ee9c20db945..281c29679ee3911535ee62b3ebde5b322d11f339 100644 (file)
@@ -633,7 +633,7 @@ static int handle_aio_read_complete(struct aio_extra *aio_ex, int errcode)
        }
        smb_setlen(outbuf,outsize - 4);
        show_msg(outbuf);
-       if (!srv_send_smb(smbd_server_fd(),outbuf,
+       if (!srv_send_smb(aio_ex->smbreq->sconn->sock, outbuf,
                        true, aio_ex->smbreq->seqnum+1,
                        IS_CONN_ENCRYPTED(aio_ex->fsp->conn), NULL)) {
                exit_server_cleanly("handle_aio_read_complete: srv_send_smb "
@@ -722,7 +722,7 @@ static int handle_aio_write_complete(struct aio_extra *aio_ex, int errcode)
        }
 
        show_msg(outbuf);
-       if (!srv_send_smb(smbd_server_fd(),outbuf,
+       if (!srv_send_smb(aio_ex->smbreq->sconn->sock, outbuf,
                          true, aio_ex->smbreq->seqnum+1,
                          IS_CONN_ENCRYPTED(fsp->conn),
                          NULL)) {