summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-13 08:08:10 (GMT)
committerChristian Heimes <christian@python.org>2016-09-13 08:08:10 (GMT)
commit30386a2a366584023e20712c256fc70079e43d80 (patch)
tree0ff538b50cdeee51915d9ef98fa3661c9a807f14
parent74822c15b3f4cf97b2c7fbbf97058883bf404013 (diff)
parentfaf2cea1fdae5bdb99d3406bda2fe6090890d4fe (diff)
downloadcpython-30386a2a366584023e20712c256fc70079e43d80.zip
cpython-30386a2a366584023e20712c256fc70079e43d80.tar.gz
cpython-30386a2a366584023e20712c256fc70079e43d80.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;
}