dereference the right field and associate the right connection

svn:r624
This commit is contained in:
Niels Provos 2007-12-31 20:42:21 +00:00
parent 2460aa5939
commit 992bc85b96

View File

@ -825,7 +825,7 @@ evrpc_reply_done(struct evhttp_request *req, void *arg)
}
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 */
hook_res = evrpc_process_hooks(&pool->input_hooks,
@ -1020,6 +1020,6 @@ struct evhttp_connection *
evrpc_hook_get_connection(void *ctx)
{
struct evrpc_request_wrapper *req = ctx;
return (req->evcon);
assert(req->hook_meta != NULL);
return (req->hook_meta->evcon);
}