From: Emeric Brun Date: Tue, 22 Sep 2015 13:50:18 +0000 (+0200) Subject: BUG/MINOR: fct peer_prepare_ackmsg should not use trash. X-Git-Tag: v1.6-dev6~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b058f1c54876e034ca49cec9d9c32eb8448df3d8;p=thirdparty%2Fhaproxy.git BUG/MINOR: fct peer_prepare_ackmsg should not use trash. function 'peer_prepare_ackmsg' is designed to use the argument 'msg' instead of 'trash.str'. There is currently no bug because the caller passes 'trash.str' in the 'msg' argument. --- diff --git a/src/peers.c b/src/peers.c index be701a8631..1e661159e9 100644 --- a/src/peers.c +++ b/src/peers.c @@ -417,7 +417,7 @@ static int peer_prepare_ackmsg(struct shared_table *st, char *msg, size_t size) char *cursor, *datamsg; uint32_t netinteger; - cursor = datamsg = trash.str + 2 + 5; + cursor = datamsg = msg + 2 + 5; intencode(st->remote_id, &cursor); netinteger = htonl(st->last_get);