commit | faf2cea1fdae5bdb99d3406bda2fe6090890d4fe | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@python.org> | Tue Sep 13 10:07:16 2016 +0200 |
committer | Christian Heimes <christian@python.org> | Tue Sep 13 10:07:16 2016 +0200 |
tree | dc64f695f06f3036cf288812c1d59f03f5717a78 | |
parent | 7a9e993f412551607b74fe83344a8fda11a17425 [diff] [blame] |
Fix NULL check in sock_sendmsg_iovec. CID 1372885
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 @@ msg->msg_iov = iovs; databufs = PyMem_New(Py_buffer, ndataparts); - if (iovs == NULL) { + if (databufs == NULL) { PyErr_NoMemory(); goto finally; }