X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_setup.c;h=fee4159fabc16ed9bfb096452e8cd4cb12f14514;hb=94f49a163aa570ea272bf3bbd7734187098d88b7;hp=d1d5c04be36ff5bfbbe002b106551a789a1635f2;hpb=6568cffd52d4803effaf52a9bb9c98d69cf7922a;p=tinc diff --git a/src/net_setup.c b/src/net_setup.c index d1d5c04b..fee4159f 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -854,14 +854,14 @@ static bool setup_myself(void) { } if(get_config_int(lookup_config(config_tree, "UDPRcvBuf"), &udp_rcvbuf)) { - if(udp_rcvbuf <= 0) { + if(udp_rcvbuf < 0) { logger(DEBUG_ALWAYS, LOG_ERR, "UDPRcvBuf cannot be negative!"); return false; } } if(get_config_int(lookup_config(config_tree, "UDPSndBuf"), &udp_sndbuf)) { - if(udp_sndbuf <= 0) { + if(udp_sndbuf < 0) { logger(DEBUG_ALWAYS, LOG_ERR, "UDPSndBuf cannot be negative!"); return false; }