Explorar el Código

Merge pull request #1328 from DL6ER/fix/crash_all_optional

 Prevent crash on no bound ports
bel2125 hace 2 meses
padre
commit
ac63906dd7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 	}