git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/socket/interfaces: Fix some uninitialied bytes.
[samba.git]
/
lib
/
socket
/
interfaces.c
diff --git
a/lib/socket/interfaces.c
b/lib/socket/interfaces.c
index 2cabf46316b913133a8339bfbaea34dd5e4a0544..dacd1180fa75b86bb9939cf294d608621f05161d 100644
(file)
--- a/
lib/socket/interfaces.c
+++ b/
lib/socket/interfaces.c
@@
-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;