From: Christian Franke Date: Tue, 4 Dec 2012 19:31:16 +0000 (-0800) Subject: ospfd: fix argument parsing for distribute-list X-Git-Tag: frr-2.0-rc1~1724^2~9 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bda3c326a3fe843417726bfe1bc8d4bafbb51fa9;p=matthieu%2Ffrr.git ospfd: fix argument parsing for distribute-list Use the correct argument for the protocol lookup in ospf distribute-list commands. Signed-off-by: Christian Franke Signed-off-by: Scott Feldman --- diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 3655cfe181..862ef95a32 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -6042,7 +6042,7 @@ DEFUN (ospf_distribute_list_out, int source; /* Get distribute source. */ - source = proto_redistnum(AFI_IP, argv[0]); + source = proto_redistnum(AFI_IP, argv[1]); if (source < 0 || source == ZEBRA_ROUTE_OSPF) return CMD_WARNING; @@ -6061,7 +6061,7 @@ DEFUN (no_ospf_distribute_list_out, struct ospf *ospf = vty->index; int source; - source = proto_redistnum(AFI_IP, argv[0]); + source = proto_redistnum(AFI_IP, argv[1]); if (source < 0 || source == ZEBRA_ROUTE_OSPF) return CMD_WARNING;