X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=blobdiff_plain;f=lib%2Fsilchttp%2Fsilchttpserver.c;h=510d51b03ec3ad7621d105bec5e11322483d1255;hp=f43b26a354d8fd0703d82beab9929246e57586df;hb=f2dd07bb06c199bc35b8a69c0828f88c8e028db6;hpb=1f27d9647347b2da8797ccaaa76c04c51c41a6c4 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;