From: Gilchrist Dadaglo Date: Mon, 24 Aug 2020 19:21:35 +0000 (+0000) Subject: BUG/MEDIUM: contrib/spoa-server: Fix ipv4_address used instead of ipv6_address X-Git-Tag: v2.3-dev4~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d00ce06d9dfe3fd7cd277faf0d8da9ee21dd3765;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: contrib/spoa-server: Fix ipv4_address used instead of ipv6_address Typo leads to checking the wrong object for memory issues This patch must be backported as far as 2.0. --- diff --git a/contrib/spoa_server/ps_python.c b/contrib/spoa_server/ps_python.c index 6843cdca5b..5cb7ca86e2 100644 --- a/contrib/spoa_server/ps_python.c +++ b/contrib/spoa_server/ps_python.c @@ -415,7 +415,7 @@ static int ps_python_start_worker(struct worker *w) } ipv6_address = PyObject_GetAttrString(module_ipaddress, "IPv6Address"); - if (ipv4_address == NULL) { + if (ipv6_address == NULL) { PyErr_Print(); return 0; }