summaryrefslogtreecommitdiffstats
path: root/tcps_sess.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-05-15 07:58:01 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-05-15 07:58:01 +0200
commitd8b191a1f37ca3f5331afa25480d49612335b674 (patch)
treed6a2aa67963db6b3403c577b852ac1f075f49436 /tcps_sess.c
parentce0569ec3ecb2116fb41006ca57498eccf1de43c (diff)
downloadrsyslog-d8b191a1f37ca3f5331afa25480d49612335b674.tar.gz
rsyslog-d8b191a1f37ca3f5331afa25480d49612335b674.tar.xz
rsyslog-d8b191a1f37ca3f5331afa25480d49612335b674.zip
bugfix: TLS server went into an endless loop in some situations.
Thanks to Michael Biebl for reporting the problem.
Diffstat (limited to 'tcps_sess.c')
-rw-r--r--tcps_sess.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/tcps_sess.c b/tcps_sess.c
index 0460ebe5..1a57c8cb 100644
--- a/tcps_sess.c
+++ b/tcps_sess.c
@@ -341,19 +341,7 @@ DataRcvd(tcps_sess_t *pThis, char *pData, size_t iLen)
assert(pData != NULL);
assert(iLen > 0);
- /* We now copy the message to the session buffer. As
- * it looks, we need to do this in any case because
- * we might run into multiple messages inside a single
- * buffer. Of course, we could think about optimizations,
- * but as this code is to be replaced by liblogging, it
- * probably doesn't make so much sense...
- * rgerhards 2005-07-04
- *
- * Algo:
- * - copy message to buffer until the first LF is found
- * - printline() the buffer
- * - continue with copying
- */
+ /* We now copy the message to the session buffer. */
pEnd = pData + iLen; /* this is one off, which is intensional */
while(pData < pEnd) {