소스 검색

Do not fail for zero address on SOCKSv5 BIND/UDPASSOC

z3APA3A 10 년 전
부모
커밋
a44a32c484
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);