s3: Remove smbd_server_fd() from switch_message
authorVolker Lendecke <vl@samba.org>
Sun, 15 Aug 2010 09:31:51 +0000 (11:31 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 16 Aug 2010 20:39:24 +0000 (22:39 +0200)
source3/smbd/process.c

index 8bd20c287091990e6385e31c05d7377e63f45b47..c3240e806d3ace929f7433506dd8971876cb8a65 100644 (file)
@@ -1526,7 +1526,7 @@ static connection_struct *switch_message(uint8 type, struct smb_request *req, in
        /* does this protocol need to be run as guest? */
        if ((flags & AS_GUEST)
            && (!change_to_guest() ||
-               !check_access(smbd_server_fd(), lp_hostsallow(-1),
+               !check_access(sconn->sock, lp_hostsallow(-1),
                              lp_hostsdeny(-1)))) {
                reply_nterror(req, NT_STATUS_ACCESS_DENIED);
                return conn;