From 4ea4fd58e0eef26f1f9f8b34e5320484a7db2a00 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 11 Nov 2002 21:54:53 +0000 Subject: [PATCH] * 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 --- src/lib/rpc/ChangeLog | 5 +++++ src/lib/rpc/get_myaddress.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.26.2