X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilchttp%2Fsilchttpserver.c;h=510d51b03ec3ad7621d105bec5e11322483d1255;hp=f43b26a354d8fd0703d82beab9929246e57586df;hb=08e0dddd6750b245da53e2bc3528d0b5a6d57e8b;hpb=51558729d89b9f3492b2ca754242ed548a579ca4 diff --git a/lib/silchttp/silchttpserver.c b/lib/silchttp/silchttpserver.c index f43b26a3..510d51b0 100644 --- a/lib/silchttp/silchttpserver.c +++ b/lib/silchttp/silchttpserver.c @@ -457,6 +457,9 @@ SilcHttpServer silc_http_server_alloc(const char *ip, SilcUInt16 port, SILC_LOG_DEBUG(("Start HTTP server at %s:%d", ip, port)); + if (!schedule) + schedule = silc_schedule_get_global(); + if (!ip || !schedule || !callback) return FALSE;