aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-12-07 22:03:47 +0000
committerRoger Dingledine <arma@torproject.org>2003-12-07 22:03:47 +0000
commit8bd7c94bf6ca5ef0ece02b165ed0102eb39e0d78 (patch)
tree70a28465a866c4d5b3a4ce23022041669c6e98de /src/or/connection.c
parent6a968495b1a41902f3abbfc00efcb83871ac62be (diff)
downloadtor-8bd7c94bf6ca5ef0ece02b165ed0102eb39e0d78.tar
tor-8bd7c94bf6ca5ef0ece02b165ed0102eb39e0d78.tar.gz
general cleanups
svn:r889
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index e4aba9620..0a72f6437 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -665,6 +665,10 @@ int connection_process_inbuf(connection_t *conn) {
return connection_or_process_inbuf(conn);
case CONN_TYPE_EXIT:
case CONN_TYPE_AP:
+ if(conn->package_window <= 0) {
+ log_fn(LOG_WARN,"called with package_window %d. Tell Roger.", conn->package_window);
+ return 0;
+ }
return connection_edge_process_inbuf(conn);
case CONN_TYPE_DIR:
return connection_dir_process_inbuf(conn);