Explorar el Código

Do not fail for zero address on SOCKSv5 BIND/UDPASSOC

z3APA3A hace 10 años
padre
commit
a44a32c484
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/socks.c

+ 1 - 1
src/socks.c

@@ -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);