diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-09 15:59:39 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-12 14:57:06 -0400 |
| commit | 107afcd10b59be3441e2b1f358942ca5e760daa2 (patch) | |
| tree | 4a327eaa64d65c2932e687ea9c7b6a3dfae4b349 /lib/zclient.c | |
| parent | 5530922ef7408fe8275a75675094c7c453186a2b (diff) | |
lib, zebra: clean up zapi nits
* Get correct data size when parsing VRF ids
* Move some vars into smaller scope
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/zclient.c')
| -rw-r--r-- | lib/zclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 20aaaca161..c720e2519b 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -327,7 +327,7 @@ bool zapi_parse_header(struct stream *zmsg, struct zmsghdr *hdr) STREAM_GETW(zmsg, hdr->length); STREAM_GETC(zmsg, hdr->marker); STREAM_GETC(zmsg, hdr->version); - STREAM_GETC(zmsg, hdr->vrf_id); + STREAM_GETL(zmsg, hdr->vrf_id); STREAM_GETW(zmsg, hdr->command); return true; stream_failure: |
