From: Nick Mathewson Date: Sat, 15 Jan 2011 15:23:58 +0000 (-0500) Subject: Fix another instance of "128" in buffers.c. More bug2330. X-Git-Tag: tor-0.2.3.1-alpha~177^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b27f5cc50d4a66bff31e43a596eb296a1b5a11dc;p=thirdparty%2Ftor.git Fix another instance of "128" in buffers.c. More bug2330. --- diff --git a/src/or/buffers.c b/src/or/buffers.c index de0c219e85..9a30a7b591 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -1670,7 +1670,7 @@ fetch_from_buf_socks_client(buf_t *buf, int state, char **reason) if (buf->datalen < 2) return 0; - buf_pullup(buf, 128, 0); + buf_pullup(buf, MAX_SOCKS_MESSAGE_LEN, 0); tor_assert(buf->head && buf->head->datalen >= 2); data = (unsigned char *) buf->head->data;