aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-24 15:31:48 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-24 15:31:48 +0400
commit3dd95c9525babd0ba5be237663132a69ebf71a2a (patch)
tree88e729e0f5bb9fff372d228c3d9a20ef482bccd8 /src/buffer.c
parent1fc9ba1ae166462266d601c50ebfe8da2fb629b3 (diff)
downloadrspamd-3dd95c9525babd0ba5be237663132a69ebf71a2a.tar.gz
rspamd-3dd95c9525babd0ba5be237663132a69ebf71a2a.zip
* Fix CRLF parsing
* Fix pidfile in start script
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 33d0904f4..125c11686 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -201,7 +201,7 @@ read_buffers (int fd, rspamd_io_dispatcher_t *d, gboolean skip_read)
if (*c == '\n') {
res.begin = b;
res.len = r;
- if (*(c - 1) == '\r') {
+ if (r != 0 && *(c - 1) == '\r') {
res.len --;
}
if (d->read_callback) {