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 <chris@opensourcerouting.org>
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
This commit is contained in:
Christian Franke 2012-12-04 11:31:16 -08:00 committed by Scott Feldman
parent 822d8f5519
commit bda3c326a3

View File

@ -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;