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/zebra/files | |
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/zebra/files')
-rw-r--r-- | net/zebra/files/patch-remote_dos | 23 |
1 files changed, 23 insertions, 0 deletions
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') |