aboutsummaryrefslogtreecommitdiffstats
path: root/security/openssh-portable/files
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2002-03-06 21:53:39 +0800
committernectar <nectar@FreeBSD.org>2002-03-06 21:53:39 +0800
commite57da13d4b233bef6dcd5c547d533173d384a3f8 (patch)
tree19fb938e2156a03b9b1b01dc1afdf873e2f35524 /security/openssh-portable/files
parent17576c2d6b245cce02112813b9269a9bc878b9cd (diff)
downloadfreebsd-ports-gnome-e57da13d4b233bef6dcd5c547d533173d384a3f8.tar.gz
freebsd-ports-gnome-e57da13d4b233bef6dcd5c547d533173d384a3f8.tar.zst
freebsd-ports-gnome-e57da13d4b233bef6dcd5c547d533173d384a3f8.zip
Fix off-by-one error.
Obtained from: OpenBSD Bump PORTREVISION.
Diffstat (limited to 'security/openssh-portable/files')
-rw-r--r--security/openssh-portable/files/patch-channels.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/openssh-portable/files/patch-channels.c b/security/openssh-portable/files/patch-channels.c
new file mode 100644
index 000000000000..fc11fc9c6bad
--- /dev/null
+++ b/security/openssh-portable/files/patch-channels.c
@@ -0,0 +1,11 @@
+--- channels.c.orig Wed Oct 10 17:18:47 2001
++++ channels.c Wed Mar 6 07:49:46 2002
+@@ -145,7 +145,7 @@
+ {
+ Channel *c;
+
+- if (id < 0 || id > channels_alloc) {
++ if (id < 0 || id >= channels_alloc) {
+ log("channel_lookup: %d: bad id", id);
+ return NULL;
+ }