From a8f8a4d6243bbcf5f5b9f741f4f2419a26e2b676 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Wed, 7 Sep 2016 18:35:01 +0300 Subject: [PATCH] 'if' is not required --- src/auth.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/auth.c b/src/auth.c index 86176f9..801d419 100644 --- a/src/auth.c +++ b/src/auth.c @@ -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; }