smbd: Fix CID 1138328 Logically dead code
authorVolker Lendecke <vl@samba.org>
Sun, 15 Dec 2013 20:18:07 +0000 (21:18 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 17 Dec 2013 00:57:13 +0000 (01:57 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_server.c

index 768a9c8c05a935e1d6f3a662f5774da9a197275e..fe42ac99f9922aa62ee356e8c326f2175d75b9d4 100644 (file)
@@ -2963,10 +2963,12 @@ static int socket_error_from_errno(int ret,
        }
 
 #ifdef EWOULDBLOCK
+#if EWOULDBLOCK != EAGAIN
        if (sys_errno == EWOULDBLOCK) {
                *retry = true;
                return sys_errno;
        }
+#endif
 #endif
 
        return sys_errno;