From d00ce06d9dfe3fd7cd277faf0d8da9ee21dd3765 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. --- 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 6843cdca5..5cb7ca86e 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; }