Browse Source

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

Nick Mathewson 13 years ago
parent
commit
b27f5cc50d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/buffers.c

+ 1 - 1
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;