diff options
Diffstat (limited to 'src/libstddjb/socket_tryr.c')
-rw-r--r-- | src/libstddjb/socket_tryr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/socket_tryr.c b/src/libstddjb/socket_tryr.c index 6544c9d..26c04b2 100644 --- a/src/libstddjb/socket_tryr.c +++ b/src/libstddjb/socket_tryr.c @@ -8,7 +8,7 @@ void socket_tryreservein (int s, unsigned int size) { while (size >= 1024) { - if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &size, sizeof size) == 0) return ; + if (!setsockopt(s, SOL_SOCKET, SO_RCVBUF, &size, sizeof size)) return ; size -= (size >> 5) ; } } |