git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe2a607
)
s4:web_server/wsgi.c - fix "asprintf" call
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Thu, 27 May 2010 15:45:19 +0000
(17:45 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Fri, 28 May 2010 08:04:48 +0000
(10:04 +0200)
source4/web_server/wsgi.c
patch
|
blob
|
history
diff --git
a/source4/web_server/wsgi.c
b/source4/web_server/wsgi.c
index 7ee70e11074166912e8ea3773ed0960b2069ccc4..7a23ae4658cf78e63d52f4e8faaceb72e5aa4ab2 100644
(file)
--- a/
source4/web_server/wsgi.c
+++ b/
source4/web_server/wsgi.c
@@
-300,7
+300,9
@@
static PyObject *create_environ(bool tls, int content_length, struct http_header
if (!strcasecmp(hdr->name, "Content-Type")) {
PyDict_SetItemString(env, "CONTENT_TYPE", PyString_FromString(hdr->value));
} else {
- asprintf(&name, "HTTP_%s", hdr->name);
+ if (asprintf(&name, "HTTP_%s", hdr->name) < 0) {
+ continue;
+ }
PyDict_SetItemString(env, name, PyString_FromString(hdr->value));
free(name);
}