]> granicus.if.org Git - libevent/commitdiff
oops; coding too quickly on nil-filter patch. Caught by niels.
authorNick Mathewson <nickm@torproject.org>
Wed, 11 Feb 2009 05:17:27 +0000 (05:17 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 11 Feb 2009 05:17:27 +0000 (05:17 +0000)
svn:r1115

bufferevent_filter.c

index e8e1f6f555b1aeb6e16508d079c0a65d1807ccc1..fd0f236ffdca2099b9d1b4a5d06aae341a3c1be3 100644 (file)
@@ -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;