Page MenuHomeFreeBSD

D14912.1796129558.diff
No OneTemporary

Authored By
Unknown
Size
751 B
Referenced Files
None
Subscribers
None

D14912.1796129558.diff

Index: head/sys/net/if.c
===================================================================
--- head/sys/net/if.c
+++ head/sys/net/if.c
@@ -3129,10 +3129,10 @@
int addrs;
/*
- * Zero the ifr_name buffer to make sure we don't
- * disclose the contents of the stack.
+ * Zero the ifr to make sure we don't disclose the contents
+ * of the stack.
*/
- memset(ifr.ifr_name, 0, sizeof(ifr.ifr_name));
+ memset(&ifr, 0, sizeof(ifr));
if (strlcpy(ifr.ifr_name, ifp->if_xname, sizeof(ifr.ifr_name))
>= sizeof(ifr.ifr_name)) {
@@ -3166,7 +3166,6 @@
}
IF_ADDR_RUNLOCK(ifp);
if (addrs == 0) {
- bzero((caddr_t)&ifr.ifr_addr, sizeof(ifr.ifr_addr));
sbuf_bcat(sb, &ifr, sizeof(ifr));
max_len += sizeof(ifr);

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 1, 12:52 PM (16 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42124950
Default Alt Text
D14912.1796129558.diff (751 B)

Event Timeline