From: Niels Provos Date: Sun, 4 May 2008 03:52:24 +0000 (+0000) Subject: remove too agressive assert X-Git-Tag: release-2.0.1-alpha~335 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a83caa6b29b1d86dd2e8121bc782a5ce92bbdbb9;p=libevent remove too agressive assert svn:r765 --- diff --git a/evrpc.c b/evrpc.c index 78ccc46f..24e32ad7 100644 --- a/evrpc.c +++ b/evrpc.c @@ -1032,6 +1032,5 @@ struct evhttp_connection * evrpc_hook_get_connection(void *ctx) { struct evrpc_request_wrapper *req = ctx; - assert(req->hook_meta != NULL); - return (req->hook_meta->evcon); + return (req->hook_meta != NULL ? req->hook_meta->evcon : NULL); }