From: Christopher Faulet Date: Fri, 15 Sep 2017 09:51:18 +0000 (+0200) Subject: BUG/MINOR: spoe: Don't rely on SPOE ctx in debug message when its creation failed X-Git-Tag: v1.8-dev3~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccbc3fd9f932958902c7ac78f95eba0badb01d57;p=thirdparty%2Fhaproxy.git BUG/MINOR: spoe: Don't rely on SPOE ctx in debug message when its creation failed If the SPOE context creation failed, we must not try to use it in the debug message used to notice the error. This patch must be backported in 1.7. --- diff --git a/src/flt_spoe.c b/src/flt_spoe.c index 2d62e5a8c9..08eb0b8137 100644 --- a/src/flt_spoe.c +++ b/src/flt_spoe.c @@ -2762,7 +2762,7 @@ spoe_start(struct stream *s, struct filter *filter) SPOE_PRINTF(stderr, "%d.%06d [SPOE/%-15s] %s: stream=%p" " - failed to create SPOE context\n", (int)now.tv_sec, (int)now.tv_usec, agent->id, - __FUNCTION__, ctx->strm); + __FUNCTION__, s); send_log(s->be, LOG_EMERG, "SPOE: [%s] failed to create SPOE context\n", agent->id);