]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_nht.c
bgpd: fix some NULL pointer dereference bugs
[mirror_frr.git] / bgpd / bgp_nht.c
index 8b6ff3fa222312f5e36a5c92a7eca15b7c7bd12a..0c0c07995013dbf72cc9bc83e43ce29e31137dea 100644 (file)
@@ -38,6 +38,7 @@
 #include "bgpd/bgp_attr.h"
 #include "bgpd/bgp_nexthop.h"
 #include "bgpd/bgp_debug.h"
+#include "bgpd/bgp_errors.h"
 #include "bgpd/bgp_nht.h"
 #include "bgpd/bgp_fsm.h"
 #include "bgpd/bgp_zebra.h"
@@ -343,7 +344,8 @@ void bgp_parse_nexthop_update(int command, vrf_id_t vrf_id)
 
        bgp = bgp_lookup_by_vrf_id(vrf_id);
        if (!bgp) {
-               zlog_err(
+               flog_err(
+                       BGP_ERR_NH_UPD,
                        "parse nexthop update: instance not found for vrf_id %u",
                        vrf_id);
                return;