]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: null check (Coverity 1457300) 2438/head
authorpaco <paco@voltanet.io>
Wed, 13 Jun 2018 17:04:43 +0000 (19:04 +0200)
committerpaco <paco@voltanet.io>
Wed, 13 Jun 2018 17:04:43 +0000 (19:04 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
ospfd/ospf_vty.c

index 7218f9664fad3f4bade25f4522a0ac0e345aff93..79f57826cbbf20b5225972f94620494db59d54a6 100644 (file)
@@ -9779,7 +9779,7 @@ static int config_write_interface_one(struct vty *vty, struct vrf *vrf)
                        }
 
                        /* bfd  print. */
-                       if (params->bfd_info)
+                       if (params && params->bfd_info)
                                ospf_bfd_write_config(vty, params);
 
                        /* MTU ignore print. */