Do not fail for zero address on SOCKSv5 BIND/UDPASSOC

This commit is contained in:
z3APA3A 2016-03-08 13:28:29 +03:00
parent b513584fdb
commit a44a32c484

View File

@ -120,7 +120,7 @@ void * sockschild(struct clientparam* param) {
#ifndef NOIPV6
}
#endif
if(SAISNULL(&param->req)) {
if(command == 1 && SAISNULL(&param->req)) {
RETURN(431);
}
myinet_ntop(*SAFAMILY(&param->sinsr), SAADDR(&param->sinsr), (char *)buf, 64);