foreach_localaddr.
(print_addr): Only process AF_INET6 addresses if AF_INET6 is defined.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13056
dc483132-0cff-0310-8789-
dd5450dbe970
2001-03-05 Ken Raeburn <raeburn@mit.edu>
+ * localaddr.c (krb5_os_localaddr): Don't look for -1 return value
+ from foreach_localaddr.
+ (print_addr): Only process AF_INET6 addresses if AF_INET6 is
+ defined.
+
* gmt_mktime.c (gmt_mktime): Handle years earlier than 1970.
(main) [TEST_LEAP]: New routine, driver for testing.
* Makefile.in (t_mktime): New target.
printf ("addr %s\n",
inet_ntoa (((struct sockaddr_in *)sa)->sin_addr));
break;
+#ifdef AF_INET6
case AF_INET6:
printf ("addr %s\n",
inet_ntop (sa->sa_family,
&((struct sockaddr_in6 *)sa)->sin6_addr,
buf, sizeof (buf)));
break;
+#endif
#ifdef AF_LINK
case AF_LINK:
printf ("linkaddr\n");
krb5_xfree (data.addr_temp[i]);
free (data.addr_temp);
}
- if (r == -1 && data.mem_err)
+ if (data.mem_err)
return ENOMEM;
else
return r;