[Python-checkins] cpython (merge 3.6 -> default): Fix NULL check in sock_sendmsg_iovec. CID 1372885
christian.heimes
python-checkins at python.org
Tue Sep 13 04:08:16 EDT 2016
https://hg.python.org/cpython/rev/4833ae686909
changeset: 103750:4833ae686909
parent: 103748:579141d6e353
parent: 103749:5c92f9e0a8b1
user: Christian Heimes <christian at python.org>
date: Tue Sep 13 10:08:10 2016 +0200
summary:
Fix NULL check in sock_sendmsg_iovec. CID 1372885
files:
Modules/socketmodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- 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;
}
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list