diff options
author | sumikawa <sumikawa@FreeBSD.org> | 2003-11-21 06:52:16 +0800 |
---|---|---|
committer | sumikawa <sumikawa@FreeBSD.org> | 2003-11-21 06:52:16 +0800 |
commit | 699e6cdf47480960ab6728eef0c63f13d492e985 (patch) | |
tree | 0c533381d217a6b3d307fdcde6a81d6dd144a3cd /net | |
parent | 0c8d04db68e8630326d4742ee6aef6b46691d7e6 (diff) | |
download | freebsd-ports-gnome-699e6cdf47480960ab6728eef0c63f13d492e985.tar.gz freebsd-ports-gnome-699e6cdf47480960ab6728eef0c63f13d492e985.tar.zst freebsd-ports-gnome-699e6cdf47480960ab6728eef0c63f13d492e985.zip |
Prevent remote dos attack.
See detail in http://rhn.redhat.com/errata/RHSA-2003-305.html
Obtained from: redhat
Diffstat (limited to 'net')
-rw-r--r-- | net/zebra/Makefile | 2 | ||||
-rw-r--r-- | net/zebra/files/patch-remote_dos | 23 |
2 files changed, 24 insertions, 1 deletions
diff --git a/net/zebra/Makefile b/net/zebra/Makefile index 755bc86a1777..ccdd83be4500 100644 --- a/net/zebra/Makefile +++ b/net/zebra/Makefile @@ -7,7 +7,7 @@ PORTNAME= zebra PORTVERSION= 0.93b -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= net ipv6 MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/ \ ftp://ftp.ripe.net/mirrors/sites/ftp.zebra.org/pub/zebra/ \ diff --git a/net/zebra/files/patch-remote_dos b/net/zebra/files/patch-remote_dos new file mode 100644 index 000000000000..ad34a751beea --- /dev/null +++ b/net/zebra/files/patch-remote_dos @@ -0,0 +1,23 @@ +--- lib/vty.c.orig Sun Aug 18 15:49:50 2002 ++++ lib/vty.c Thu Nov 20 22:17:46 2003 +@@ -1138,13 +1138,16 @@ + 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') |