summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2022-02-07 07:40:54 (GMT)
committerGitHub <noreply@github.com>2022-02-07 07:40:54 (GMT)
commit59e004af63742361b67d1e1ae70229ff0db1059d (patch)
tree5372c695e1acce925a16678d4f1bb2453a2e7bc2 /Modules
parenta335d98f19b7fa66159d12932cc9a05eb2d8395f (diff)
downloadcpython-59e004af63742361b67d1e1ae70229ff0db1059d.zip
cpython-59e004af63742361b67d1e1ae70229ff0db1059d.tar.gz
cpython-59e004af63742361b67d1e1ae70229ff0db1059d.tar.bz2
bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153)
va_end() must be called before returning.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_hashopenssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
index fb155b2..bb94872 100644
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -266,6 +266,7 @@ _setException(PyObject *exc, const char* altmsg, ...)
} else {
PyErr_FormatV(exc, altmsg, vargs);
}
+ va_end(vargs);
return NULL;
}
va_end(vargs);