summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crypto/openssh/channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/channels.c b/crypto/openssh/channels.c
index d39040b96158..2d272609676e 100644
--- a/crypto/openssh/channels.c
+++ b/crypto/openssh/channels.c
@@ -151,7 +151,7 @@ Channel *
channel_lookup(int id)
{
Channel *c;
- if (id < 0 || id > channels_alloc) {
+ if (id < 0 || id >= channels_alloc) {
log("channel_lookup: %d: bad id", id);
return NULL;
}