From d2437975b7cacde0abf46056c0be1fb9748322fd Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Sat, 13 Dec 2014 20:30:20 +0300 Subject: [PATCH] Fail IPv6 client in dnsauth before IPv6 for dnsauth is implemented --- src/auth.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/auth.c b/src/auth.c index 113f4ce..b544e1d 100644 --- a/src/auth.c +++ b/src/auth.c @@ -736,8 +736,12 @@ int userauth(struct clientparam * param){ int dnsauth(struct clientparam * param){ char buf[32]; + /* FIX IT */ - unsigned u = ntohl(*(unsigned long *)SAADDR(¶m->sincr)); + unsigned u ; + + if(*SAFAMILY(¶m->sincr)!=AF_INET) return 6; + u = ntohl(*(unsigned long *)SAADDR(¶m->sincr)); sprintf(buf, "%u.%u.%u.%u.in-addr.arpa",