Check for valid HTTPD config.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 10 Jun 2007 16:12:47 +0000 (16:12 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 10 Jun 2007 16:12:47 +0000 (16:12 +0000)
apps/silcd/server_http.c

index 663057ec3550450e427cb8b9b3cc377650658fbf..720cc822203bfd555175383a7676122a96c09a42 100644 (file)
@@ -141,6 +141,9 @@ static void silc_server_http_callback(SilcHttpServer httpd,
 
 void silc_server_http_init(SilcServer server)
 {
+  if (!server->config->httpd_ip)
+    return;
+
   /* Allocate HTTP server */
   server->httpd = silc_http_server_alloc(server->config->httpd_ip,
                                         server->config->httpd_port,