From 5db578e0786707b6ab1bf94a830bf8cff9bb4902 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Fri, 16 Apr 2004 05:57:01 +0000 Subject: [PATCH] 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. --- src/afs/afs_callback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/afs/afs_callback.c b/src/afs/afs_callback.c index 913ae320b3..dfe01275d4 100644 --- a/src/afs/afs_callback.c +++ b/src/afs/afs_callback.c @@ -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 */