diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2022-03-25 01:43:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 01:43:27 +0100 |
commit | b15250ccfd1d3a5e6cb083353c0078293d3dd9a2 (patch) | |
tree | 86f22641427a46e2d3b0c9391d81dd9b5f95436e | |
parent | Merge pull request #10857 from ton31337/fix/bmp_stats_crash (diff) | |
parent | zebra: Don't send uninited data to kernel on FreeBSD (diff) | |
download | frr-b15250ccfd1d3a5e6cb083353c0078293d3dd9a2.tar.xz frr-b15250ccfd1d3a5e6cb083353c0078293d3dd9a2.zip |
Merge pull request #10864 from donaldsharp/free_bsd_uninit_values
-rw-r--r-- | zebra/ioctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c index 9b6aaf1d8..a895ed941 100644 --- a/zebra/ioctl.c +++ b/zebra/ioctl.c @@ -136,7 +136,7 @@ static int if_ioctl_ipv6(unsigned long request, caddr_t buffer) void if_get_metric(struct interface *ifp) { #ifdef SIOCGIFMETRIC - struct ifreq ifreq; + struct ifreq ifreq = {}; ifreq_set_name(&ifreq, ifp); @@ -153,7 +153,7 @@ void if_get_metric(struct interface *ifp) /* get interface MTU */ void if_get_mtu(struct interface *ifp) { - struct ifreq ifreq; + struct ifreq ifreq = {}; ifreq_set_name(&ifreq, ifp); @@ -410,8 +410,8 @@ int if_unset_prefix_ctx(const struct zebra_dplane_ctx *ctx) void if_get_flags(struct interface *ifp) { int ret; - struct ifreq ifreqflags; - struct ifreq ifreqdata; + struct ifreq ifreqflags = {}; + struct ifreq ifreqdata = {}; ifreq_set_name(&ifreqflags, ifp); ifreq_set_name(&ifreqdata, ifp); |