projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d24a8d
)
fix memory leak for invavlid HTTP-Heeaders
author
Wilfried Goesgens
<willi@arangodb.com>
Sun, 11 Oct 2015 21:26:01 +0000
(23:26 +0200)
committer
Wilfried Goesgens
<willi@arangodb.com>
Sun, 11 Oct 2015 21:26:01 +0000
(23:26 +0200)
webcit/context_loop.c
patch
|
blob
|
history
diff --git
a/webcit/context_loop.c
b/webcit/context_loop.c
index fd13b97f1151c72d14ef893391ded2f721e9c849..f02a619913123c375a81c599d29b6e5dd17896cf 100644
(file)
--- a/
webcit/context_loop.c
+++ b/
webcit/context_loop.c
@@
-397,7
+397,11
@@
int ReadHTTPRequest (ParsedHttpHdrs *Hdr)
nLine ++;
Line = NewStrBufPlain(NULL, SIZ / 4);
nLine ++;
Line = NewStrBufPlain(NULL, SIZ / 4);
- if (ClientGetLine(Hdr, Line) < 0) return 1;
+ if (ClientGetLine(Hdr, Line) < 0) {
+ FreeStrBuf(&Line);
+ isbogus = 1;
+ break;
+ }
if (StrLength(Line) == 0) {
FreeStrBuf(&Line);
if (StrLength(Line) == 0) {
FreeStrBuf(&Line);