mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 05:33:42 +00:00
Reverting some int -> unsigned int fixes in command.c for now. Fixes crash
described in [quagga-dev 2292].
This commit is contained in:
parent
cee6649137
commit
cba8a60639
@ -1,3 +1,9 @@
|
|||||||
|
2005-01-02 Hasso Tepper <hasso at quagga.net>
|
||||||
|
|
||||||
|
* command.c: Revert int -> unsigned int fixes in
|
||||||
|
cmd_describe_command_real() and cmd_complete_command_real(). index can
|
||||||
|
be actually negative and it caused crash with "do<TAB>" in vty.
|
||||||
|
|
||||||
2004-12-29 Greg Troxel <gdt@poblano.ir.bbn.com>
|
2004-12-29 Greg Troxel <gdt@poblano.ir.bbn.com>
|
||||||
|
|
||||||
* sockopt.c (getsockopt_ipv4_ifindex): Document calling
|
* sockopt.c (getsockopt_ipv4_ifindex): Document calling
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: command.c,v 1.30 2004/12/17 23:16:33 ajs Exp $
|
$Id: command.c,v 1.31 2005/01/02 18:51:01 hasso Exp $
|
||||||
|
|
||||||
Command interpreter routine for virtual terminal [aka TeletYpe]
|
Command interpreter routine for virtual terminal [aka TeletYpe]
|
||||||
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
|
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
|
||||||
@ -1565,12 +1565,12 @@ cmd_try_do_shortcut (enum node_type node, char* first_word) {
|
|||||||
static vector
|
static vector
|
||||||
cmd_describe_command_real (vector vline, struct vty *vty, int *status)
|
cmd_describe_command_real (vector vline, struct vty *vty, int *status)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
int i;
|
||||||
vector cmd_vector;
|
vector cmd_vector;
|
||||||
#define INIT_MATCHVEC_SIZE 10
|
#define INIT_MATCHVEC_SIZE 10
|
||||||
vector matchvec;
|
vector matchvec;
|
||||||
struct cmd_element *cmd_element;
|
struct cmd_element *cmd_element;
|
||||||
unsigned int index;
|
int index;
|
||||||
int ret;
|
int ret;
|
||||||
enum match_type match;
|
enum match_type match;
|
||||||
char *command;
|
char *command;
|
||||||
@ -1761,12 +1761,12 @@ cmd_lcd (char **matched)
|
|||||||
static char **
|
static char **
|
||||||
cmd_complete_command_real (vector vline, struct vty *vty, int *status)
|
cmd_complete_command_real (vector vline, struct vty *vty, int *status)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
int i;
|
||||||
vector cmd_vector = vector_copy (cmd_node_vector (cmdvec, vty->node));
|
vector cmd_vector = vector_copy (cmd_node_vector (cmdvec, vty->node));
|
||||||
#define INIT_MATCHVEC_SIZE 10
|
#define INIT_MATCHVEC_SIZE 10
|
||||||
vector matchvec;
|
vector matchvec;
|
||||||
struct cmd_element *cmd_element;
|
struct cmd_element *cmd_element;
|
||||||
unsigned int index = vector_max (vline) - 1;
|
int index = vector_max (vline) - 1;
|
||||||
char **match_str;
|
char **match_str;
|
||||||
struct desc *desc;
|
struct desc *desc;
|
||||||
vector descvec;
|
vector descvec;
|
||||||
|
Loading…
Reference in New Issue
Block a user