소스 검색

Merge pull request #1328 from DL6ER/fix/crash_all_optional

 Prevent crash on no bound ports
bel2125 2 달 전
부모
커밋
ac63906dd7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -20563,7 +20563,7 @@ master_thread_run(struct mg_context *ctx)
 	unsigned int i;
 	unsigned int workerthreadcount;
 
-	if (!ctx) {
+	if (!ctx || !ctx->listening_socket_fds) {
 		return;
 	}