projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96161e4
)
- put proper pointer into the free function
author
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 18 Jan 2015 14:32:13 +0000
(15:32 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 18 Jan 2015 14:32:13 +0000
(15:32 +0100)
- abort if the algorythm says more to come but doesn't send anymore.
webcit/tcp_sockets.c
patch
|
blob
|
history
diff --git
a/webcit/tcp_sockets.c
b/webcit/tcp_sockets.c
index d4795c83042fd6c9f3cf47cb1f4213857cf01877..33889f665ffc998f81037cbd928aa5232c6cc8ad 100644
(file)
--- a/
webcit/tcp_sockets.c
+++ b/
webcit/tcp_sockets.c
@@
-697,7
+697,7
@@
void serv_read_binary_to_http(StrBuf *MimeType, size_t total_len, int is_static,
}
FlushStrBuf(pBuf);
}
- } while (
rc == 1
);
+ } while (
(rc == 1) && (StrLength(pBuf) > 0)
);
}
FlushStrBuf(WCC->WBuf);
}
@@
-718,7
+718,7
@@
void serv_read_binary_to_http(StrBuf *MimeType, size_t total_len, int is_static,
}
}
- StrBufDestroyStreamContext(eZLibEncode, SC);
+ StrBufDestroyStreamContext(eZLibEncode,
&
SC);
FreeStrBuf(&WriteBuffer.Buf);
if ((chunked) && (client_con_state == 0))
{