From 3b13de3e6ed8ebf8cff8e2cfd79e4bbbd53ea6fc Mon Sep 17 00:00:00 2001 From: Unbit Date: Sat, 12 Oct 2013 00:34:31 +0200 Subject: [PATCH] check for NULL dictionary values in python autoreloader --- plugins/python/python_plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index 8c266b6c..788a52dd 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -1380,6 +1380,7 @@ void *uwsgi_python_autoreloader_thread(void *foobar) { #endif PyObject *mod_name, *mod; while (PyDict_Next(modules, &pos, &mod_name, &mod)) { + if (mod == NULL) continue; int found = 0; struct uwsgi_string_list *usl = up.auto_reload_ignore; while(usl) {