X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libevent%2Fbufferevent_pair.c;h=6ec5cac81567587371dca862bd960d03114dd638;hb=d2968df026cd9971caeab102f9348152b08b9132;hp=1e20f78b94abe0f3f375f7d608e0528427a8bf48;hpb=14874ef66d68c5200a9a42a7408d022d58211898;p=netatalk.git 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);