summaryrefslogtreecommitdiff
path: root/net/quagga/patches
diff options
context:
space:
mode:
authorwiz <wiz>2003-11-18 16:34:49 +0000
committerwiz <wiz>2003-11-18 16:34:49 +0000
commitcb2883a6d1633f48ac4bf51421acf9932dca256b (patch)
treea295aefabcada70c71e617c373334873b4323af7 /net/quagga/patches
parentcb3c48cf70b46a1695688d7cb8e07d51d3eb0b66 (diff)
downloadpkgsrc-cb2883a6d1633f48ac4bf51421acf9932dca256b.tar.gz
Fix a security problem wrt telnet control characters. Bump PKGREVISION.
Patch from RedHat Source RPM via itojun (same for zebra commit a minute ago). While here, fix PLIST.
Diffstat (limited to 'net/quagga/patches')
-rw-r--r--net/quagga/patches/patch-ah25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/quagga/patches/patch-ah b/net/quagga/patches/patch-ah
new file mode 100644
index 00000000000..515c7407423
--- /dev/null
+++ b/net/quagga/patches/patch-ah
@@ -0,0 +1,25 @@
+$NetBSD: patch-ah,v 1.1 2003/11/18 16:34:49 wiz Exp $
+
+--- lib/vty.c.orig Tue Jul 15 14:52:22 2003
++++ lib/vty.c
+@@ -1140,13 +1140,16 @@ vty_telnet_option (struct vty *vty, unsi
+ break;
+ case SE:
+ {
+- char *buffer = (char *)vty->sb_buffer->head->data;
+- int length = vty->sb_buffer->length;
++ char *buffer;
++ int length;
+
+- if (buffer == NULL)
++ if (!vty->iac_sb_in_progress)
+ return 0;
+
+- if (!vty->iac_sb_in_progress)
++ buffer = (char *)vty->sb_buffer->head->data;
++ length = vty->sb_buffer->length;
++
++ if (buffer == NULL)
+ return 0;
+
+ if (buffer[0] == '\0')