[tor-commits] [obfsproxy/master] Added a warning in obfs2_recv() since we are sending pending data on

nickm at torproject.org nickm at torproject.org
Sun May 29 01:33:38 UTC 2011


commit ad09a5176ed9a7d171ffe7a98ef36801767b08db
Author: George Kadianakis <desnacked at gmail.com>
Date:   Thu May 26 00:36:50 2011 +0200

    Added a warning in obfs2_recv() since we are sending pending data on
    the next obfs2_send() instead of sending them at the moment
    init_crypto() is done.
---
 src/protocols/obfs2.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/protocols/obfs2.c b/src/protocols/obfs2.c
index b3fe590..a8f9155 100644
--- a/src/protocols/obfs2.c
+++ b/src/protocols/obfs2.c
@@ -398,6 +398,10 @@ obfs2_recv(void *s, struct evbuffer *source,
     if (plength > OBFUSCATE_MAX_PADDING)
       return -1;
 
+    /* XXX FIXME we should now be sending any 'pending_data_to_send'
+       but we can't send them from here, so we send them with
+       obfs2_send() when we next have to send data */
+
     /* Now we're waiting for plength bytes of padding */
     state->padding_left_to_read = plength;
     state->state = ST_WAIT_FOR_PADDING;





More information about the tor-commits mailing list