diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2014-09-17 13:19:01 +0800 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2014-09-17 13:19:01 +0800 |
commit | ebf0eb89938ef3da56660bb4b8e043d73311d5f4 (patch) | |
tree | ceb9977286425825740876df5d7349e19f131c38 /Python/importdl.c | |
parent | 8f9f5f2448be5f6d261011e2cf16ce1d9e733fc4 (diff) | |
parent | 7512258fade04669b3fa38b313372fbd2c04cf47 (diff) | |
download | cpython-ebf0eb89938ef3da56660bb4b8e043d73311d5f4.tar.gz |
Merge from 3.3
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
Diffstat (limited to 'Python/importdl.c')
-rw-r--r-- | Python/importdl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/importdl.c b/Python/importdl.c index 0ea954cae0..b60f1c75fb 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -77,6 +77,8 @@ _PyImport_LoadDynamicModule(PyObject *name, PyObject *path, FILE *fp) PyObject *msg = PyUnicode_FromFormat("dynamic module does not define " "init function (PyInit_%s)", shortname); + if (msg == NULL) + goto error; PyErr_SetImportError(msg, name, path); Py_DECREF(msg); goto error; |