From faf2cea1fdae5bdb99d3406bda2fe6090890d4fe Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 13 Sep 2016 10:07:16 +0200 Subject: Fix NULL check in sock_sendmsg_iovec. CID 1372885 --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index eee607f..e87f790 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; } -- cgit v0.12