From: Niels Provos <provos@gmail.com>
Date: Sat, 23 Dec 2006 07:30:10 +0000 (+0000)
Subject: fix a bug in an assert; from Weston Andros Adamson
X-Git-Tag: release-2.0.1-alpha~669
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=894b63654303649ee1b0fc888cbfded616e6d54e;p=libevent

fix a bug in an assert; from Weston Andros Adamson


svn:r305
---

diff --git a/http.c b/http.c
index 22958b0b..212f189c 100644
--- 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);