mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-19 19:40:56 +00:00
Properly populate mg_connection.sa field
PUBLISHED_FROM=a305c720aee1b159847e10c962b6de7fe08bc787
This commit is contained in:
1 parent
b35657814c
commit
4658194d08
1 file changed
+1
@@ -2399,6 +2399,7 @@ static struct mg_connection *accept_conn(struct mg_connection *ls) {
|
|||||||
c->proto_handler = ls->proto_handler;
|
c->proto_handler = ls->proto_handler;
|
||||||
c->user_data = ls->user_data;
|
c->user_data = ls->user_data;
|
||||||
c->recv_mbuf_limit = ls->recv_mbuf_limit;
|
c->recv_mbuf_limit = ls->recv_mbuf_limit;
|
||||||
|
c->sa = sa;
|
||||||
if (c->ssl == NULL) { /* SSL connections need to perform handshake. */
|
if (c->ssl == NULL) { /* SSL connections need to perform handshake. */
|
||||||
mg_call(c, MG_EV_ACCEPT, &sa);
|
mg_call(c, MG_EV_ACCEPT, &sa);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user