]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix another instance of "128" in buffers.c. More bug2330.
authorNick Mathewson <nickm@torproject.org>
Sat, 15 Jan 2011 15:23:58 +0000 (10:23 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 15 Jan 2011 15:25:58 +0000 (10:25 -0500)
src/or/buffers.c

index de0c219e85fbeb5fd78dc8deca8526fae14a36ee..9a30a7b5915466abac0efbd3272f2736f29f6b20 100644 (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;