dont-leak-random-kernel-data-20040415

Zero out data structure being returned to user, so that we don't
send random kernel memory garbage to them.
This commit is contained in:
Nickolai Zeldovich 2004-04-16 05:57:01 +00:00
parent cd495f0727
commit 5db578e078

View File

@ -975,6 +975,8 @@ SRXAFSCB_WhoAreYou(struct rx_call *a_call, struct interfaceAddr *addr)
AFS_STATCNT(SRXAFSCB_WhoAreYou);
memset(addr, 0, sizeof(*addr));
ObtainReadLock(&afs_xinterface);
/* return all network interface addresses */