X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=libevent%2Fbufferevent_pair.c;h=6ec5cac81567587371dca862bd960d03114dd638;hp=1e20f78b94abe0f3f375f7d608e0528427a8bf48;hb=refs%2Fheads%2Fv3.1.6-alex;hpb=dd07aea71f86aa97f05db188c49e0a3c035ee41c diff --git a/libevent/bufferevent_pair.c b/libevent/bufferevent_pair.c index 1e20f78b..6ec5cac8 100644 --- a/libevent/bufferevent_pair.c +++ b/libevent/bufferevent_pair.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2010 Niels Provos, Nick Mathewson + * Copyright (c) 2009-2012 Niels Provos, Nick Mathewson * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -158,7 +158,7 @@ be_pair_transfer(struct bufferevent *src, struct bufferevent *dst, evbuffer_unfreeze(dst->input, 0); if (dst->wm_read.high) { - size_t dst_size = evbuffer_get_length(dst->input); + dst_size = evbuffer_get_length(dst->input); if (dst_size < dst->wm_read.high) { n = dst->wm_read.high - dst_size; evbuffer_remove_buffer(src->output, dst->input, n);