X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_setup.c;h=3c66c136c3d2e580fd44555ac0464201e5ccb08d;hb=c46bdbde18629f0a0613c776c13a79fea0ec6093;hp=92aa5dbc71d38c78b98b06a59c212936fa11066f;hpb=11effab85b6b278ccf0ac3ba52a12bbca3e3dcc5;p=tinc diff --git a/src/net_setup.c b/src/net_setup.c index 92aa5dbc..3c66c136 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -148,9 +148,6 @@ bool read_ecdsa_public_key(connection_t *c) { #ifndef DISABLE_LEGACY bool read_rsa_public_key(connection_t *c) { - if(ecdsa_active(c->ecdsa)) - return true; - FILE *fp; char *fname; char *n; @@ -857,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; }