diff options
Diffstat (limited to 'net/quagga/patches/patch-ah')
-rw-r--r-- | net/quagga/patches/patch-ah | 25 |
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') |