]> granicus.if.org Git - libevent/commitdiff
fix a bug in an assert; from Weston Andros Adamson
authorNiels Provos <provos@gmail.com>
Sat, 23 Dec 2006 07:30:10 +0000 (07:30 +0000)
committerNiels Provos <provos@gmail.com>
Sat, 23 Dec 2006 07:30:10 +0000 (07:30 +0000)
svn:r305

http.c

diff --git a/http.c b/http.c
index 22958b0bba9033f7445b4d17b64ca96431987916..212f189c40170ece06fba10e6575319fafa69bfe 100644 (file)
--- a/http.c
+++ b/http.c
@@ -757,7 +757,7 @@ evhttp_request_dispatch(struct evhttp_connection* evcon)
        evhttp_connection_stop_detectclose(evcon);
        
        /* we assume that the connection is connected already */
-       assert(evcon->state = EVCON_CONNECTED);
+       assert(evcon->state == EVCON_CONNECTED);
 
        /* Create the header from the store arguments */
        evhttp_make_header(evcon, req);