summaryrefslogtreecommitdiff
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-10-01 19:02:33 -0400
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-01 19:07:37 -0400
commit66cd1bb30935e9e02508fbc9bbba2763a42e6c54 (patch)
tree4fcd3507b0f95ccc59ed389330dce00f75a12409 /lib/zclient.c
parent113296dc347224531b338903741e3ed01bc35580 (diff)
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>
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 9129466685..91dbe30a09 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -1988,7 +1988,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;