]> git.proxmox.com Git - mirror_frr.git/blobdiff - pbrd/pbr_zebra.c
zebra: Convert socket interface to use `union sockunion`
[mirror_frr.git] / pbrd / pbr_zebra.c
index b7391a171a653215e09d8b23bb99485bd82a3ae4..7974bbfb4e60d3ae6a22423ed089e170c7c6803b 100644 (file)
@@ -361,7 +361,10 @@ static int pbr_zebra_nexthop_update(int command, struct zclient *zclient,
        char buf[PREFIX2STR_BUFFER];
        uint32_t i;
 
-       zapi_nexthop_update_decode(zclient->ibuf, &nhr);
+       if (!zapi_nexthop_update_decode(zclient->ibuf, &nhr)) {
+               zlog_warn("Failure to decode Nexthop update message");
+               return 0;
+       }
 
        if (DEBUG_MODE_CHECK(&pbr_dbg_zebra, DEBUG_MODE_ALL)) {
 
@@ -391,7 +394,7 @@ void pbr_zebra_init(void)
 {
        struct zclient_options opt = { .receive_notify = true };
 
-       zclient = zclient_new_notify(master, &opt);
+       zclient = zclient_new(master, &opt);
 
        zclient_init(zclient, ZEBRA_ROUTE_PBR, 0, &pbr_privs);
        zclient->zebra_connected = zebra_connected;