]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: we were checking the wrong thing to see if 'reason'
authorRoger Dingledine <arma@torproject.org>
Sun, 29 Feb 2004 22:04:52 +0000 (22:04 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 29 Feb 2004 22:04:52 +0000 (22:04 +0000)
was out of range

svn:r1186

src/or/connection_edge.c

index 68493b3c1c7a244674e21467aced906db0a6e853..85d07446c7243bc54c88ff393be4a08198919359 100644 (file)
@@ -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";
   }