]> granicus.if.org Git - libevent/commitdiff
remove too agressive assert
authorNiels Provos <provos@gmail.com>
Sun, 4 May 2008 03:52:24 +0000 (03:52 +0000)
committerNiels Provos <provos@gmail.com>
Sun, 4 May 2008 03:52:24 +0000 (03:52 +0000)
svn:r765

evrpc.c

diff --git a/evrpc.c b/evrpc.c
index 78ccc46f6ba7917ea0b1a447f033f69ba68b6f0d..24e32ad78056ca8101ef13681090eafff8f15b5a 100644 (file)
--- 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);
 }