diff options
author | Steve Dower <steve.dower@microsoft.com> | 2017-02-04 15:05:50 -0800 |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2017-02-04 15:05:50 -0800 |
commit | 3b0e4320092ac0504b6670cafaf0301b908c91fc (patch) | |
tree | d3be1b6b844d61763bb366fa21ceed475e5703fd /Modules/_scproxy.c | |
parent | b2fa705fd3887c326e811c418469c784353027f4 (diff) | |
parent | f687fbcd73c14dfcbe086eb5cd94b298f1e81e72 (diff) | |
download | cpython-3b0e4320092ac0504b6670cafaf0301b908c91fc.tar.gz |
Issue #29392: Prevent crash when passing invalid arguments into msvcrt module.
Diffstat (limited to 'Modules/_scproxy.c')
-rw-r--r-- | Modules/_scproxy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_scproxy.c b/Modules/_scproxy.c index 1ce4b776f3..0e3b02879b 100644 --- a/Modules/_scproxy.c +++ b/Modules/_scproxy.c @@ -64,8 +64,7 @@ get_proxy_settings(PyObject* mod __attribute__((__unused__))) proxyDict = SCDynamicStoreCopyProxies(NULL); if (!proxyDict) { - Py_INCREF(Py_None); - return Py_None; + Py_RETURN_NONE; } result = PyDict_New(); |