Преглед на файлове

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;
 	}