'if' is not required

This commit is contained in:
z3APA3A 2016-09-07 18:35:01 +03:00
parent fd29e887c3
commit a8f8a4d624

View File

@ -1166,10 +1166,7 @@ unsigned long udpresolve(int af, unsigned char * name, unsigned char * value, un
ttl = ntohl(*(unsigned long *)(buf + k + 6));
memcpy(value, buf + k + 12, af == AF_INET6? 16:4);
if(ttl < 60 || ttl > (3600*12)) ttl = 300;
if(ttl){
hashadd(af == AF_INET6?&dns6_table:&dns_table, name, value, conf.time+ttl);
}
hashadd(af == AF_INET6?&dns6_table:&dns_table, name, value, conf.time+ttl);
if(retttl) *retttl = ttl;
return 1;
}