From: Christian Heimes Date: Tue, 13 Sep 2016 08:07:16 +0000 (+0200) Subject: Fix NULL check in sock_sendmsg_iovec. CID 1372885 X-Git-Tag: v3.6.0b2~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=faf2cea1fdae5bdb99d3406bda2fe6090890d4fe;p=thirdparty%2FPython%2Fcpython.git Fix NULL check in sock_sendmsg_iovec. CID 1372885 --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index eee607fd1392..e87f790fb0b1 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -3943,7 +3943,7 @@ sock_sendmsg_iovec(PySocketSockObject *s, PyObject *data_arg, msg->msg_iov = iovs; databufs = PyMem_New(Py_buffer, ndataparts); - if (iovs == NULL) { + if (databufs == NULL) { PyErr_NoMemory(); goto finally; }