]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: contrib/spoa-server: Fix ipv4_address used instead of ipv6_address
authorGilchrist Dadaglo <dadaglo@amazon.com>
Mon, 24 Aug 2020 19:21:35 +0000 (19:21 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Sep 2020 16:28:40 +0000 (18:28 +0200)
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

index 6843cdca5bda73fa251e66340b2c56dac63ac132..5cb7ca86e230be47feb13b9bf52de84f3593852a 100644 (file)
@@ -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;
        }