]> granicus.if.org Git - python/commitdiff
remove overly strict assertion (closes #20251)
authorBenjamin Peterson <benjamin@python.org>
Tue, 14 Jan 2014 05:21:49 +0000 (00:21 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 14 Jan 2014 05:21:49 +0000 (00:21 -0500)
Modules/socketmodule.c

index 27df333b7a7e1cfe6ff59bf09c2313f886ad8bc7..880f31165a9bc5acf12709e33a5e79b332a901c9 100644 (file)
@@ -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,