From f6c1bf87063c22eb5d9ca9937f161c22975ef8ca Mon Sep 17 00:00:00 2001 From: Gilchrist Dadaglo Date: Mon, 24 Aug 2020 19:21:35 +0000 Subject: [PATCH] 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 --- contrib/spoa_server/ps_python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.7.10.4