aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index 10cd5d99..b953f3f3 100644
--- a/socket.c
+++ b/socket.c
@@ -591,7 +591,7 @@ SSL *SSLGetContext( int sock )
if( NULL == _ctx )
return NULL;
- if( sock < 0 || sock > FD_SETSIZE )
+ if( sock < 0 || (unsigned)sock > FD_SETSIZE )
return NULL;
return _ssl_context[sock];
}
@@ -807,7 +807,7 @@ int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char
#endif /* SSL_ENABLE */
- if( sock < 0 || sock > FD_SETSIZE ) {
+ if( sock < 0 || (unsigned)sock > FD_SETSIZE ) {
report(stderr, GT_("File descriptor out of range for SSL") );
return( -1 );
}