summaryrefslogtreecommitdiff
path: root/zebra/zebra_srte.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_srte.c')
-rw-r--r--zebra/zebra_srte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_srte.c b/zebra/zebra_srte.c
index c0b83382c4..bb8d4b3b40 100644
--- a/zebra/zebra_srte.c
+++ b/zebra/zebra_srte.c
@@ -145,7 +145,7 @@ static int zebra_sr_policy_notify_update_client(struct zebra_sr_policy *policy,
stream_putc(s, nhlfe->distance);
stream_putl(s, 0); /* metric - not available */
nump = stream_get_endp(s);
- stream_putc(s, 0);
+ stream_putw(s, 0);
}
zapi_nexthop_from_nexthop(&znh, nhlfe->nexthop);
@@ -155,7 +155,7 @@ static int zebra_sr_policy_notify_update_client(struct zebra_sr_policy *policy,
num++;
}
- stream_putc_at(s, nump, num);
+ stream_putw_at(s, nump, num);
stream_putw_at(s, 0, stream_get_endp(s));
client->nh_last_upd_time = monotime(NULL);