From: Donald Sharp Date: Wed, 29 Mar 2023 11:39:52 +0000 (-0400) Subject: lib: Ensure the safi is set to a sensible value X-Git-Tag: base_9.0~220^2~9 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fbdc605778b208f20a1b817fc710542760bb3b75;p=mirror%2Ffrr.git lib: Ensure the safi is set to a sensible value The safi has no 0 value which it is set to as part of the initialization. Let's just set it to a sensible value. Signed-off-by: Donald Sharp --- diff --git a/lib/zclient.c b/lib/zclient.c index 95093a56f5..d42cb20191 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -4294,6 +4294,8 @@ int32_t zapi_capabilities_decode(struct stream *s, struct zapi_cap *api) memset(api, 0, sizeof(*api)); + api->safi = SAFI_UNICAST; + STREAM_GETL(s, api->cap); switch (api->cap) { case ZEBRA_CLIENT_GR_CAPABILITIES: