summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorGreg Hazel <ghazel@gmail.com>2018-02-11 16:28:58 -0800
committerAzat Khuzhin <a3at.mail@gmail.com>2018-04-24 02:29:17 +0300
commit367cd9e5c2b8e3f9b8dbed40bfe8a0ed79285c36 (patch)
tree2ad76775b014805c91b543c8111d31b6c419aa00 /http.c
parenta3d8f2e09302536c6c0ffc3ccb1fc6f43b51dc4f (diff)
downloadlibevent-367cd9e5c2b8e3f9b8dbed40bfe8a0ed79285c36.tar.gz
Fix evhttp_connection_get_addr() fox incomming http connections
Install conn_address of the bufferevent on incomping http connections (even though this is kind of subsytem violation, so let's fix it in a simplest way and thinkg about long-term solution). Fixes: #510 Closes: #595 (pick)
Diffstat (limited to 'http.c')
-rw-r--r--http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index a49809a7..b04af9a3 100644
--- a/http.c
+++ b/http.c
@@ -4221,6 +4221,7 @@ evhttp_get_request_connection(
bufferevent_enable(evcon->bufev, EV_READ);
bufferevent_disable(evcon->bufev, EV_WRITE);
bufferevent_setfd(evcon->bufev, fd);
+ bufferevent_socket_set_conn_address_(evcon->bufev, sa, salen);
return (evcon);
}