]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: spoa/python: Fixing typo in IP related error messages
authorGilchrist Dadaglo <dadaglo@amazon.com>
Tue, 8 Dec 2020 14:37:08 +0000 (14:37 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Dec 2020 07:39:31 +0000 (08:39 +0100)
This commit fixes typos in the ps_python_set_var_ip* byte manipulation error
messages

This patch must be backported as far as 2.0.

contrib/spoa_server/ps_python.c

index 81bb9325321475eb8d3fa38d07fb2906ba26e436..ec97f30f509db9c8cf5321fd7e85130c882463d6 100644 (file)
@@ -236,7 +236,7 @@ static PyObject *ps_python_set_var_ipv4(PyObject *self, PyObject *args)
        if (value == NULL)
                return NULL;
        if (PY_STRING_GET_SIZE(value) != sizeof(ip)) {
-               PyErr_Format(spoa_error, "UPv6 manipulation internal error");
+               PyErr_Format(spoa_error, "IPv4 manipulation internal error");
                return NULL;
        }
        memcpy(&ip, PY_STRING_AS_STRING(value), PY_STRING_GET_SIZE(value));
@@ -273,7 +273,7 @@ static PyObject *ps_python_set_var_ipv6(PyObject *self, PyObject *args)
        if (value == NULL)
                return NULL;
        if (PY_STRING_GET_SIZE(value) != sizeof(ip)) {
-               PyErr_Format(spoa_error, "UPv6 manipulation internal error");
+               PyErr_Format(spoa_error, "IPv6 manipulation internal error");
                return NULL;
        }
        memcpy(&ip, PY_STRING_AS_STRING(value), PY_STRING_GET_SIZE(value));