Commit faf2cea1 authored by Christian Heimes's avatar Christian Heimes

Fix NULL check in sock_sendmsg_iovec. CID 1372885

parent 7a9e993f
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment