Bryan Drewery 21 лет назад
Родитель
Сommit
e4949383e2
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/main.c

+ 2 - 1
src/main.c

@@ -161,7 +161,8 @@ void fatal(const char *s, int recoverable)
 #endif /* HAVE_SSL */
 
 #ifdef HUB
-  listen_all(my_port, 1); /* close the listening port... */
+  if (my_port)
+    listen_all(my_port, 1); /* close the listening port... */
 #endif /* HUB */
 
   for (int i = 0; i < dcc_total; i++)