mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
542 B

  1. --- zebra-0.91a/lib/vty.c.orig Thu Feb 1 02:18:05 2001
  2. +++ zebra-0.91a/lib/vty.c Wed Oct 15 19:50:34 2003
  3. @@ -1103,13 +1103,16 @@
  4. break;
  5. case SE:
  6. {
  7. - char *buffer = (char *)vty->sb_buffer->head->data;
  8. - int length = vty->sb_buffer->length;
  9. + char *buffer;
  10. + int length;
  11. - if (buffer == NULL)
  12. + if (!vty->iac_sb_in_progress)
  13. return 0;
  14. - if (!vty->iac_sb_in_progress)
  15. + buffer = (char *)vty->sb_buffer->head->data;
  16. + length = vty->sb_buffer->length;
  17. +
  18. + if (buffer == NULL)
  19. return 0;
  20. if (buffer[0] == '\0')