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.
This commit is contained in:
Gilchrist Dadaglo 2020-08-24 19:21:35 +00:00 committed by Christopher Faulet
parent 2417ebcc01
commit d00ce06d9d

View File

@ -415,7 +415,7 @@ static int ps_python_start_worker(struct worker *w)
} }
ipv6_address = PyObject_GetAttrString(module_ipaddress, "IPv6Address"); ipv6_address = PyObject_GetAttrString(module_ipaddress, "IPv6Address");
if (ipv4_address == NULL) { if (ipv6_address == NULL) {
PyErr_Print(); PyErr_Print();
return 0; return 0;
} }