]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix arg bug; reduce confusion in package_raw_inbuf
authorRoger Dingledine <arma@torproject.org>
Wed, 19 Mar 2003 22:27:01 +0000 (22:27 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 19 Mar 2003 22:27:01 +0000 (22:27 +0000)
svn:r207

src/or/connection.c

index afd7120a5d8603f009f05c04c438eb284c9a5760..c9d2c2dc5aa652897e54f892118038c87f10f079 100644 (file)
@@ -399,7 +399,7 @@ int connection_decompress_to_buf(char *string, int len, connection_t *conn,
    *
    * This check should may be different.
    */
-  if (connection_outbuf_too_full(conn->outbuf))
+  if (connection_outbuf_too_full(conn))
     return 0;
   
   n = decompress_buf_to_buf(
@@ -781,11 +781,8 @@ repeat_connection_package_raw_inbuf:
     }
     log(LOG_DEBUG,"connection_package_raw_inbuf(): receive_topicwindow at AP is %d",conn->p_receive_topicwindow);
   }
-  if (conn->inbuf_datalen) {
-    log(LOG_DEBUG,"connection_package_raw_inbuf(): recursing.");
-    goto repeat_connection_package_raw_inbuf;
-  }
-  return 0;
+  /* handle more if there's more, or return 0 if there isn't */
+  goto repeat_connection_package_raw_inbuf;
 }
 
 int connection_consider_sending_sendme(connection_t *conn, int edge_type) {