* get_myaddress.c (get_myaddress): Local array buf size should be counted in
authorKen Raeburn <raeburn@mit.edu>
Mon, 11 Nov 2002 21:54:53 +0000 (21:54 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 11 Nov 2002 21:54:53 +0000 (21:54 +0000)
ifreq structs, not ifconf structs.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14992 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/rpc/ChangeLog
src/lib/rpc/get_myaddress.c

index 2a0f4846dee8ffa9b2dc06bf18a3c298a9531791..5024f721c7b242d170906c88c750099d4512b154 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-11  Ken Raeburn  <raeburn@mit.edu>
+
+       * get_myaddress.c (get_myaddress): Local array buf size should be
+       counted in ifreq structs, not ifconf structs.
+
 2002-10-31  Ken Raeburn  <raeburn@mit.edu>
 
        * xdr_alloc.c (xdralloc_putlong): Coerce value pointed to by
index f5bf2bdabffa228e788ad1ca8ff83ec59b654f52..1f4f4eec5fd67e75cf4c3c8dd79c379e4a0d5cb0 100644 (file)
@@ -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;