Parcourir la source

Ah. That seems to work.

svn:r6657
Nick Mathewson il y a 19 ans
Parent
commit
0932f463ff
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/or/buffers.c

+ 1 - 1
src/or/buffers.c

@@ -1305,7 +1305,7 @@ write_to_buf_zlib(buf_t *buf, tor_zlib_state_t *state,
     if (next < buf->cur)
       old_avail = avail = buf->cur - next;
     else
-      old_avail = avail = (buf->mem + buf->datalen) - next;
+      old_avail = avail = (buf->mem + buf->len) - next;
     switch (tor_zlib_process(state, &next, &avail, &data, &data_len, done)) {
       case TOR_ZLIB_DONE:
         over = 1;