diff options
Diffstat (limited to 'source4/web_server')
-rw-r--r-- | source4/web_server/wsgi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/web_server/wsgi.c b/source4/web_server/wsgi.c index 7a23ae4658..db1a5f2633 100644 --- a/source4/web_server/wsgi.c +++ b/source4/web_server/wsgi.c @@ -301,7 +301,8 @@ static PyObject *create_environ(bool tls, int content_length, struct http_header PyDict_SetItemString(env, "CONTENT_TYPE", PyString_FromString(hdr->value)); } else { if (asprintf(&name, "HTTP_%s", hdr->name) < 0) { - continue; + PyErr_NoMemory(); + return NULL; } PyDict_SetItemString(env, name, PyString_FromString(hdr->value)); free(name); |