[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] bugfix: we were checking the wrong thing to see if "reason"
- To: or-cvs@freehaven.net
- Subject: [or-cvs] bugfix: we were checking the wrong thing to see if "reason"
- From: arma@seul.org (Roger Dingledine)
- Date: Sun, 29 Feb 2004 17:04:54 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 29 Feb 2004 17:05:11 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
connection_edge.c
Log Message:
bugfix: we were checking the wrong thing to see if 'reason'
was out of range
Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- connection_edge.c 29 Feb 2004 09:15:29 -0000 1.103
+++ connection_edge.c 29 Feb 2004 22:04:52 -0000 1.104
@@ -103,7 +103,7 @@
log_fn(LOG_WARN,"End cell arrived with length 0. Should be at least 1.");
return "MALFORMED";
}
- if(*payload < END_STREAM_REASON_MISC || *payload > END_STREAM_REASON_DONE) {
+ if(*payload < _MIN_END_STREAM_REASON || *payload > _MAX_END_STREAM_REASON) {
log_fn(LOG_WARN,"Reason for ending (%d) not recognized.",*payload);
return "MALFORMED";
}