diff options
-rw-r--r-- | sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -168,7 +168,7 @@ static int get_system_socket_mem(int which) static void set_system_socket_mem(int which, int val) { - if (sysctl_set_int(sock_mem[which], val)) + if (val > 0 && sysctl_set_int(sock_mem[which], val)) printf("Cannot set system socket memory in %s%s: %s\n", SYSCTL_PROC_PATH, sock_mem[which], strerror(errno)); } |