summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2014-07-03 12:48:53 -0400
committerGreg Hudson <ghudson@mit.edu>2014-07-04 15:14:03 -0400
commit48a0b16ab1f70b6486a6d7af7ca9e7b376b19956 (patch)
treef761ac8f8209fca8708f9f55f8fc5c7b13ce8940 /src/tests
parent1fde9a67030845d3cae0661595f5737a4db8b9dd (diff)
downloadkrb5-48a0b16ab1f70b6486a6d7af7ca9e7b376b19956.tar.gz
krb5-48a0b16ab1f70b6486a6d7af7ca9e7b376b19956.tar.xz
krb5-48a0b16ab1f70b6486a6d7af7ca9e7b376b19956.zip
Avoid using length fields in socket addresses
Remove code to set or reference the length fields of socket addresses (sa_len/sin_len/sin6_len), since they aren't portable and setting them is not required. Remove autoconf tests for those fields which are no longer used or which were never used. There is one exception: in localaddr.c, we still neeed to reference sa_len for the definition of ifreq_size on platforms which have sa_len. Leave that behind, along with the autoconf test which defines SA_LEN.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/resolve/addrinfo-test.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/tests/resolve/addrinfo-test.c b/src/tests/resolve/addrinfo-test.c
index d53b48a68..b5c6da942 100644
--- a/src/tests/resolve/addrinfo-test.c
+++ b/src/tests/resolve/addrinfo-test.c
@@ -266,12 +266,6 @@ int main (int argc, char *argv[])
return 1;
}
-#if defined(SIN6_LEN)
- if (ap->ai_addr->sa_len == 0)
- printf ("BAD: sa_len not set!\n");
-#endif
-
-
for (ap2 = ap; ap2; ap2 = ap2->ai_next) {
char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV];
/* If we don't do this, even AIX's own getnameinfo will reject