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",