This commit is contained in:
Mark Dickinson 2012-06-23 09:28:08 +01:00
commit 970da4549a
1 changed files with 2 additions and 2 deletions

View File

@ -1437,7 +1437,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
"getsockaddrarg: port must be 0-65535.");
return 0;
}
if (flowinfo < 0 || flowinfo > 0xfffff) {
if (flowinfo > 0xfffff) {
PyErr_SetString(
PyExc_OverflowError,
"getsockaddrarg: flowinfo must be 0-1048575.");
@ -5119,7 +5119,7 @@ socket_getnameinfo(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(sa, "si|II",
&hostp, &port, &flowinfo, &scope_id))
return NULL;
if (flowinfo < 0 || flowinfo > 0xfffff) {
if (flowinfo > 0xfffff) {
PyErr_SetString(PyExc_OverflowError,
"getsockaddrarg: flowinfo must be 0-1048575.");
return NULL;