1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Prevent remote dos attack.

See detail in http://rhn.redhat.com/errata/RHSA-2003-305.html

Obtained from:	redhat
This commit is contained in:
Munechika SUMIKAWA 2003-11-20 22:52:16 +00:00
parent 00b3ef18a3
commit 34da72d3dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94560
2 changed files with 24 additions and 1 deletions

View File

@ -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/ \

View File

@ -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')