summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-13 08:07:16 (GMT)
committerChristian Heimes <christian@python.org>2016-09-13 08:07:16 (GMT)
commitfaf2cea1fdae5bdb99d3406bda2fe6090890d4fe (patch)
treedc64f695f06f3036cf288812c1d59f03f5717a78
parent7a9e993f412551607b74fe83344a8fda11a17425 (diff)
downloadcpython-faf2cea1fdae5bdb99d3406bda2fe6090890d4fe.zip
cpython-faf2cea1fdae5bdb99d3406bda2fe6090890d4fe.tar.gz
cpython-faf2cea1fdae5bdb99d3406bda2fe6090890d4fe.tar.bz2
Fix NULL check in sock_sendmsg_iovec. CID 1372885
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
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;
}