Commit a677d762 authored by Benjamin Peterson's avatar Benjamin Peterson

remove overly strict assertion (closes #20251)

parent 9cb33b7d
...@@ -2924,7 +2924,6 @@ sock_recvfrom_into(PySocketSockObject *s, PyObject *args, PyObject* kwds) ...@@ -2924,7 +2924,6 @@ sock_recvfrom_into(PySocketSockObject *s, PyObject *args, PyObject* kwds)
return NULL; return NULL;
buf = pbuf.buf; buf = pbuf.buf;
buflen = pbuf.len; buflen = pbuf.len;
assert(buf != 0 && buflen > 0);
if (recvlen < 0) { if (recvlen < 0) {
PyBuffer_Release(&pbuf); PyBuffer_Release(&pbuf);
......
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