Fail IPv6 client in dnsauth

before IPv6 for dnsauth is implemented
This commit is contained in:
z3APA3A 2014-12-13 20:30:20 +03:00
parent e39f4638cf
commit d2437975b7

View File

@ -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(&param->sincr));
unsigned u ;
if(*SAFAMILY(&param->sincr)!=AF_INET) return 6;
u = ntohl(*(unsigned long *)SAADDR(&param->sincr));
sprintf(buf, "%u.%u.%u.%u.in-addr.arpa",