]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Ensure the safi is set to a sensible value
authorDonald Sharp <sharpd@nvidia.com>
Wed, 29 Mar 2023 11:39:52 +0000 (07:39 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 29 Mar 2023 11:48:42 +0000 (07:48 -0400)
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 <sharpd@nvidia.com>
lib/zclient.c

index 95093a56f5d9e9aaa022762c14ed256372441555..d42cb2019189a9cfab18463e0cef3a62ab66fa92 100644 (file)
@@ -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: