From: Madhuri Kuruganti Date: Mon, 19 Sep 2022 19:21:52 +0000 (+0530) Subject: ospfd: fix for few debug commands lost in config after debug ospf packet is enabled X-Git-Tag: frr-8.4-rc~26^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F11961%2Fhead;p=mirror%2Ffrr.git ospfd: fix for few debug commands lost in config after debug ospf packet is enabled Signed-off-by: Madhuri Kuruganti --- diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c index d8295315ca..9b347891ec 100644 --- a/ospfd/ospf_dump.c +++ b/ospfd/ospf_dump.c @@ -1930,7 +1930,7 @@ static int config_write_debug(struct vty *vty) & (OSPF_DEBUG_SEND_RECV | OSPF_DEBUG_DETAIL); if (r == (OSPF_DEBUG_SEND_RECV | OSPF_DEBUG_DETAIL)) { vty_out(vty, "debug ospf%s packet all detail\n", str); - return 1; + write = 1; } /* debug ospf packet all. */ @@ -1943,7 +1943,7 @@ static int config_write_debug(struct vty *vty) if (conf_debug_ospf_packet[i] & OSPF_DEBUG_DETAIL) vty_out(vty, "debug ospf%s packet %s detail\n", str, type_str[i]); - return 1; + write = 1; } /* debug ospf packet (hello|dd|ls-request|ls-update|ls-ack)