From: Theodore Tso Date: Wed, 13 Sep 1995 23:02:18 +0000 (+0000) Subject: Clear the buffer before calling the SIOCGIFCONF ioctl. This makes X-Git-Tag: krb5-1.0-beta6~1081 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a042450523827506daad640dafdd4d5ea2ef0d66;p=krb5.git Clear the buffer before calling the SIOCGIFCONF ioctl. This makes purify happy. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6782 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/os/ChangeLog b/src/lib/crypto/os/ChangeLog index 1c42e5228..78cda02df 100644 --- a/src/lib/crypto/os/ChangeLog +++ b/src/lib/crypto/os/ChangeLog @@ -1,3 +1,9 @@ +Wed Sep 13 17:32:36 1995 Theodore Y. Ts'o + + * c_localaddr.c (krb5_crypto_os_localaddr): Clear the buffer + before calling the SIOCGIFCONF ioctl. This makes purify + happy. + Thu Sep 7 12:00:00 1995 James Mattly * Renamed ustime.c to c_ustime.c diff --git a/src/lib/crypto/os/c_localaddr.c b/src/lib/crypto/os/c_localaddr.c index 7ab153a8a..c1d75cf70 100644 --- a/src/lib/crypto/os/c_localaddr.c +++ b/src/lib/crypto/os/c_localaddr.c @@ -117,9 +117,10 @@ krb5_crypto_os_localaddr(addr) int n_found; int mem_err = 0; + memset(buf, 0, sizeof(buf)); ifc.ifc_len = sizeof(buf); ifc.ifc_buf = buf; - + s = socket (USE_AF, USE_TYPE, USE_PROTO); if (s < 0) return errno;