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.9~781 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51b78bf84e92ecfd10e772c3b9530fe8f8a056a3;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 b606e54a90..0228bb6f1f 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));