Ver código fonte

Merge pull request #1328 from DL6ER/fix/crash_all_optional

 Prevent crash on no bound ports
bel2125 2 meses atrás
pai
commit
ac63906dd7
1 arquivos alterados com 1 adições e 1 exclusões
  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;
 	}