Przeglądaj źródła

Do not fail for zero address on SOCKSv5 BIND/UDPASSOC

z3APA3A 10 lat temu
rodzic
commit
a44a32c484
1 zmienionych plików z 1 dodań i 1 usunięć
  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);