lib: Decode vrf_id update appropriately from zapi

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>
This commit is contained in:
Stephen Worley 2019-10-01 19:02:33 -04:00
parent ba0d195d59
commit 9594bc4053

View File

@ -1944,7 +1944,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;