mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 21:10:06 -04:00
dereference the right field and associate the right connection
svn:r624
This commit is contained in:
parent
2460aa5939
commit
992bc85b96
6
evrpc.c
6
evrpc.c
@ -825,7 +825,7 @@ evrpc_reply_done(struct evhttp_request *req, void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (TAILQ_FIRST(&pool->input_hooks) != NULL) {
|
if (TAILQ_FIRST(&pool->input_hooks) != NULL) {
|
||||||
evrpc_hook_associate_meta(&ctx->hook_meta, req->evcon);
|
evrpc_hook_associate_meta(&ctx->hook_meta, ctx->evcon);
|
||||||
|
|
||||||
/* apply hooks to the incoming request */
|
/* apply hooks to the incoming request */
|
||||||
hook_res = evrpc_process_hooks(&pool->input_hooks,
|
hook_res = evrpc_process_hooks(&pool->input_hooks,
|
||||||
@ -1020,6 +1020,6 @@ struct evhttp_connection *
|
|||||||
evrpc_hook_get_connection(void *ctx)
|
evrpc_hook_get_connection(void *ctx)
|
||||||
{
|
{
|
||||||
struct evrpc_request_wrapper *req = ctx;
|
struct evrpc_request_wrapper *req = ctx;
|
||||||
|
assert(req->hook_meta != NULL);
|
||||||
return (req->evcon);
|
return (req->hook_meta->evcon);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user