pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/zebra Fix a security problem wrt telnet control ch...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fe01076ac468
branches:  trunk
changeset: 463580:fe01076ac468
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Nov 18 16:34:13 2003 +0000

description:
Fix a security problem wrt telnet control characters. Bump PKGREVISION.

diffstat:

 net/zebra/Makefile         |   3 ++-
 net/zebra/distinfo         |   3 ++-
 net/zebra/patches/patch-ah |  25 +++++++++++++++++++++++++
 3 files changed, 29 insertions(+), 2 deletions(-)

diffs (57 lines):

diff -r b4b0734a0579 -r fe01076ac468 net/zebra/Makefile
--- a/net/zebra/Makefile        Tue Nov 18 16:32:39 2003 +0000
+++ b/net/zebra/Makefile        Tue Nov 18 16:34:13 2003 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.58 2003/08/13 07:27:06 itojun Exp $
+# $NetBSD: Makefile,v 1.59 2003/11/18 16:34:13 wiz Exp $
 # Based on KAME Id: Makefile,v 1.1.2.1.2.1.10.2 1999/01/05 11:03:50 itojun Exp
 #
 
 DISTNAME=      zebra-0.93b
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  ftp://ftp.zebra.org/pub/zebra/
 DISTFILES=     ${DISTNAME}${EXTRACT_SUFX}
diff -r b4b0734a0579 -r fe01076ac468 net/zebra/distinfo
--- a/net/zebra/distinfo        Tue Nov 18 16:32:39 2003 +0000
+++ b/net/zebra/distinfo        Tue Nov 18 16:34:13 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2002/09/13 08:41:49 itojun Exp $
+$NetBSD: distinfo,v 1.11 2003/11/18 16:34:13 wiz Exp $
 
 SHA1 (zebra-0.93b.tar.gz) = bcaafd4a064ba7aa1d60b3a6144eb778f8ae237a
 Size (zebra-0.93b.tar.gz) = 1340359 bytes
@@ -9,3 +9,4 @@
 SHA1 (patch-ae) = bad18eda9b4ffd4cc22666b26573858e7de84a7d
 SHA1 (patch-af) = d045b85bfc8f8d5f6894e2333b0a799661997f90
 SHA1 (patch-ag) = 62b5e4f28c1d13cb1f9c772250529aefe0511f90
+SHA1 (patch-ah) = 31383b2529bb1d8b42ade582f1c4352e9ccab1d1
diff -r b4b0734a0579 -r fe01076ac468 net/zebra/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/zebra/patches/patch-ah        Tue Nov 18 16:34:13 2003 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ah,v 1.1 2003/11/18 16:34:13 wiz Exp $
+
+--- lib/vty.c.orig     Sun Aug 18 16:49:50 2002
++++ lib/vty.c
+@@ -1138,13 +1138,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')



Home | Main Index | Thread Index | Old Index