summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/connection_edge.c2
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";
}