Commit 9e798891 authored by Benjamin Peterson's avatar Benjamin Peterson

remove overly strict assertion (closes #20251)

parent 06e486c2
......@@ -2732,7 +2732,6 @@ sock_recvfrom_into(PySocketSockObject *s, PyObject *args, PyObject* kwds)
&recvlen, &flags))
return NULL;
buflen = buf.len;
assert(buf.buf != 0 && buflen > 0);
if (recvlen < 0) {
PyErr_SetString(PyExc_ValueError,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment