lib/socket/interfaces: Fix some uninitialied bytes.
[samba.git] / lib / socket / interfaces.c
index 2cabf46316b913133a8339bfbaea34dd5e4a0544..dacd1180fa75b86bb9939cf294d608621f05161d 100644 (file)
@@ -145,6 +145,7 @@ static void query_iface_speed_from_name(const char *name, uint64_t *speed)
                goto done;
        }
 
+       ZERO_STRUCT(ifr);
        strncpy(ifr.ifr_name, name, IF_NAMESIZE);
 
        ifr.ifr_data = (void *)&edata;