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.1.9~33 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=f6c1bf87063c22eb5d9ca9937f161c22975ef8ca;p=haproxy-2.1.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. (cherry picked from commit d00ce06d9dfe3fd7cd277faf0d8da9ee21dd3765) Signed-off-by: Christopher Faulet (cherry picked from commit dadf4315e1eb0768c8eb57dad7a3a39048b65618) Signed-off-by: Christopher Faulet --- diff --git a/contrib/spoa_server/ps_python.c b/contrib/spoa_server/ps_python.c index 3ad9323..433e4c5 100644 --- a/contrib/spoa_server/ps_python.c +++ b/contrib/spoa_server/ps_python.c @@ -309,7 +309,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; }