projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kernel] fixup 2.6.34 kernel headers to properly export XT_ALIGN() to userspace
[openwrt.git]
/
package
/
uhttpd
/
src
/
uhttpd.c
diff --git
a/package/uhttpd/src/uhttpd.c
b/package/uhttpd/src/uhttpd.c
index
be88247
..
764ff7d
100644
(file)
--- a/
package/uhttpd/src/uhttpd.c
+++ b/
package/uhttpd/src/uhttpd.c
@@
-266,7
+266,8
@@
static struct http_request * uh_http_header_parse(struct client *cl, char *buffe
}
/* check version */
}
/* check version */
- if( strcmp(version, "HTTP/0.9") && strcmp(version, "HTTP/1.0") && strcmp(version, "HTTP/1.1") )
+ if( (version == NULL) || (strcmp(version, "HTTP/0.9") &&
+ strcmp(version, "HTTP/1.0") && strcmp(version, "HTTP/1.1")) )
{
/* unsupported version */
uh_http_response(cl, 400, "Bad Request");
{
/* unsupported version */
uh_http_response(cl, 400, "Bad Request");
@@
-1001,13
+1002,6
@@
int main (int argc, char **argv)
}
}
}
}
- /* 400 */
- else
- {
- uh_http_sendhf(cl, 400, "Bad Request",
- "Malformed request received");
- }
-
#ifdef HAVE_TLS
/* free client tls context */
if( conf.tls )
#ifdef HAVE_TLS
/* free client tls context */
if( conf.tls )
This page took
0.02575 seconds
and
4
git commands to generate.