Procházet zdrojové kódy

Merge pull request #1328 from DL6ER/fix/crash_all_optional

 Prevent crash on no bound ports
bel2125 před 2 měsíci
rodič
revize
ac63906dd7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
 	}