aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-04 19:14:30 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-04 19:14:30 +0300
commit8c09632127fb53347239f5f35c0049d8d316a607 (patch)
tree0a1b7e772d655b5e3632d37e20d96a0ea3ad2e49 /src/buffer.c
parentb4e3c966595fb52ed7aacd8505d184376eaeaebb (diff)
downloadrspamd-8c09632127fb53347239f5f35c0049d8d316a607.tar.gz
rspamd-8c09632127fb53347239f5f35c0049d8d316a607.zip
* Fix bug in url parser with freeing memory allocated by memory_pool allocator
* Do not write to log if we don't do any read operation in dispatcher library
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 5864da382..fe5cf7a72 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -176,12 +176,11 @@ read_buffers (int fd, rspamd_io_dispatcher_t *d, gboolean skip_read)
d->in_buf->pos += r;
d->in_buf->data->len += r;
}
-
+ msg_debug ("read_buffers: read %ld characters, policy is %s, watermark is: %ld",
+ (long int)r, d->policy == BUFFER_LINE ? "LINE" : "CHARACTER",
+ (long int)d->nchars);
}
- msg_debug ("read_buffers: read %ld characters, policy is %s, watermark is: %ld",
- (long int)r, d->policy == BUFFER_LINE ? "LINE" : "CHARACTER",
- (long int)d->nchars);
saved_policy = d->policy;
c = d->in_buf->data->begin;
r = 0;