summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ohl <john@collabriasoftware.com>2014-11-16 23:40:16 -0500
committerJohn Ohl <john@collabriasoftware.com>2014-11-16 23:40:16 -0500
commit10fe4ef300df9475ec37e817aa5777044f7d03b4 (patch)
tree7ccb8484309291174d3e71451fb06c0fb3a6d97a
parentb0e99244ce39ae0840a782ec66461837db7fc888 (diff)
downloadlibevent-10fe4ef300df9475ec37e817aa5777044f7d03b4.tar.gz
Prevent duplicate event_del on fd
-rw-r--r--http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index e02297ac..449056c9 100644
--- a/http.c
+++ b/http.c
@@ -1265,6 +1265,7 @@ evhttp_connection_reset_(struct evhttp_connection *evcon)
shutdown(evcon->fd, EVUTIL_SHUT_WR);
evutil_closesocket(evcon->fd);
+ bufferevent_setfd(evcon->bufev, -1);
evcon->fd = -1;
}