From: Gilchrist Dadaglo Date: Tue, 8 Dec 2020 14:37:08 +0000 (+0000) Subject: DOC: spoa/python: Fixing typo in IP related error messages X-Git-Tag: v2.4-dev3~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6884742c651e65d065be9fc10cfaf258dae353f0;p=thirdparty%2Fhaproxy.git DOC: spoa/python: Fixing typo in IP related error messages 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. --- diff --git a/contrib/spoa_server/ps_python.c b/contrib/spoa_server/ps_python.c index 81bb932532..ec97f30f50 100644 --- a/contrib/spoa_server/ps_python.c +++ b/contrib/spoa_server/ps_python.c @@ -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));