[Python-checkins] cpython (3.6): Fix NULL check in sock_sendmsg_iovec. CID 1372885

christian.heimes python-checkins at python.org
Tue Sep 13 04:08:17 EDT 2016


https://hg.python.org/cpython/rev/5c92f9e0a8b1
changeset:   103749:5c92f9e0a8b1
branch:      3.6
parent:      103741:96bf30d5387a
user:        Christian Heimes <christian at python.org>
date:        Tue Sep 13 10:07:16 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