From: Stephan Bosch Date: Thu, 14 Feb 2019 20:16:26 +0000 (+0100) Subject: lib-http: http-client-connection - Descend event from client context rather than... X-Git-Tag: 2.3.6~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b5f39c670857b54127c6e20813f059003832c6d;p=thirdparty%2Fdovecot%2Fcore.git lib-http: http-client-connection - Descend event from client context rather than client. The connection is potentially switched between clients often causing the client event prefix to make no sense. --- diff --git a/src/lib-http/http-client-connection.c b/src/lib-http/http-client-connection.c index d983ab6e1d..32f31421f5 100644 --- a/src/lib-http/http-client-connection.c +++ b/src/lib-http/http-client-connection.c @@ -1701,7 +1701,7 @@ http_client_connection_create(struct http_client_peer *peer) conn->label = i_strdup_printf("%s [%d]", http_client_peer_shared_label(pshared), conn->id); - conn->event = event_create(peer->client->event); + conn->event = event_create(ppool->peer->cctx->event); conn->conn.event_parent = conn->event; event_set_append_log_prefix(conn->event, t_strdup_printf("conn %s: ", conn->label));