From: Ken Raeburn Date: Mon, 11 Nov 2002 21:54:53 +0000 (+0000) Subject: * get_myaddress.c (get_myaddress): Local array buf size should be counted in X-Git-Tag: krb5-1.3-alpha1~279 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4ea4fd58e0eef26f1f9f8b34e5320484a7db2a00;p=krb5.git * get_myaddress.c (get_myaddress): Local array buf size should be counted in ifreq structs, not ifconf structs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14992 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/rpc/ChangeLog b/src/lib/rpc/ChangeLog index 2a0f4846d..5024f721c 100644 --- a/src/lib/rpc/ChangeLog +++ b/src/lib/rpc/ChangeLog @@ -1,3 +1,8 @@ +2002-11-11 Ken Raeburn + + * get_myaddress.c (get_myaddress): Local array buf size should be + counted in ifreq structs, not ifconf structs. + 2002-10-31 Ken Raeburn * xdr_alloc.c (xdralloc_putlong): Coerce value pointed to by diff --git a/src/lib/rpc/get_myaddress.c b/src/lib/rpc/get_myaddress.c index f5bf2bdab..1f4f4eec5 100644 --- a/src/lib/rpc/get_myaddress.c +++ b/src/lib/rpc/get_myaddress.c @@ -83,7 +83,7 @@ get_myaddress(addr) struct sockaddr_in *addr; { int s; - char buf[256 * sizeof (struct ifconf)]; + char buf[256 * sizeof (struct ifreq)]; struct ifconf ifc; struct ifreq ifreq, *ifr; int len;