changeset 5988:42e56c396bfb HEAD

Compile without IPv6
author Timo Sirainen <tss@iki.fi>
date Fri, 13 Jul 2007 17:25:00 +0300
parents 409dc8834651
children 1a7f5c04af1d
files src/auth/auth-request.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-request.c	Fri Jul 13 05:59:46 2007 +0300
+++ b/src/auth/auth-request.c	Fri Jul 13 17:25:00 2007 +0300
@@ -871,8 +871,13 @@
 		ip1 = &ip->u.ip4.s_addr;
 		ip2 = &net_ip.u.ip4.s_addr;
 	} else {
+#ifdef HAVE_IPV6
 		ip1 = (const void *)&ip->u.ip6;
 		ip2 = (const void *)&net_ip.u.ip6;
+#else
+		/* shouldn't get here */
+		return -1;
+#endif
 	}
 
 	/* check first the full 32bit ints */