projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
307b424
)
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
author
Wilfried Goesgens
<dothebart@citadel.org>
Mon, 5 Dec 2011 23:19:36 +0000
(
00:19
+0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Mon, 5 Dec 2011 23:19:36 +0000
(
00:19
+0100)
webcit/tcp_sockets.c
patch
|
blob
|
history
diff --git
a/webcit/tcp_sockets.c
b/webcit/tcp_sockets.c
index c9d053f2f796b1ca4bf897e2e347675d506d0201..7db07943d4dd9210ba5b2fac3163f205e247d4f5 100644
(file)
--- a/
webcit/tcp_sockets.c
+++ b/
webcit/tcp_sockets.c
@@
-448,7
+448,8
@@
int ClientGetLine(ParsedHttpHdrs *Hdr, StrBuf *Target)
if (is_https) {
int ntries = 0;
- if (StrLength(Hdr->ReadBuf) > 0) {
+ if (StrLength(Hdr->ReadBuf) > 0)
+ {
pchs = ChrPtr(Hdr->ReadBuf);
pch = strchr(pchs, '\n');
if (pch != NULL) {
@@
-471,6
+472,8
@@
int ClientGetLine(ParsedHttpHdrs *Hdr, StrBuf *Target)
retval = client_read_sslbuffer(Hdr->ReadBuf, SLEEPING);
pchs = ChrPtr(Hdr->ReadBuf);
pch = strchr(pchs, '\n');
+ if (pch == NULL)
+ retval = 0;
}
if (retval == 0) {
sleeeeeeeeeep(1);