Fix another instance of "128" in buffers.c. More bug2330.

This commit is contained in:
Nick Mathewson
2011-01-15 10:23:58 -05:00
parent 2c04c506a4
commit b27f5cc50d
+1 -1
View File
@@ -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;