diff options
author | Roger Dingledine <arma@torproject.org> | 2004-02-29 22:04:52 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-02-29 22:04:52 +0000 |
commit | 2ac37c64f288cf72060edffc45ff5a3bbb8f787e (patch) | |
tree | a280fbfbef19886990add58e2a8a95d44da423c1 | |
parent | 247fe31af2f88ebb687ee08eeb8d7942b52ba853 (diff) | |
download | tor-2ac37c64f288cf72060edffc45ff5a3bbb8f787e.tar.gz tor-2ac37c64f288cf72060edffc45ff5a3bbb8f787e.zip |
bugfix: we were checking the wrong thing to see if 'reason'
was out of range
svn:r1186
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 68493b3c1c..85d07446c7 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -103,7 +103,7 @@ static char *connection_edge_end_reason(char *payload, uint16_t length) { 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"; } |