From ac36f4047e8c4b7cb9fb5908741e885f11cfdb35 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 11 Feb 2009 05:17:27 +0000 Subject: [PATCH] oops; coding too quickly on nil-filter patch. Caught by niels. svn:r1115 --- bufferevent_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bufferevent_filter.c b/bufferevent_filter.c index e8e1f6f5..fd0f236f 100644 --- a/bufferevent_filter.c +++ b/bufferevent_filter.c @@ -155,7 +155,7 @@ be_null_filter(struct evbuffer *src, struct evbuffer *dst, ssize_t lim, enum bufferevent_flush_mode state, void *ctx) { (void)state; - if (evbuffer_remove_buffer(src, src, lim) == 0) + if (evbuffer_remove_buffer(src, dst, lim) == 0) return BEV_OK; else return BEV_ERROR; -- 2.40.0