]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Decode vrf_id update appropriately from zapi
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 1 Oct 2019 23:02:33 +0000 (19:02 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 1 Oct 2019 23:15:07 +0000 (19:15 -0400)
The vrf_id in `zsend_interface_vrf_update()` is encoded as
a long via `stream_putl()`, we should decode it as such
as well.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
lib/zclient.c

index 96a78efad6d5abe125493d77e3337dba8c610c5e..9affe4306dc4581eab2f7238cd55c12897dd0f74 100644 (file)
@@ -1829,7 +1829,7 @@ struct interface *zebra_interface_vrf_update_read(struct stream *s,
        }
 
        /* Fetch new VRF Id. */
-       new_id = stream_getw(s);
+       new_id = stream_getl(s);
 
        *new_vrf_id = new_id;
        return ifp;