dovecot: Compile without IPv6

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 13 17:25:08 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/42e56c396bfb
changeset: 5988:42e56c396bfb
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jul 13 17:25:00 2007 +0300
description:
Compile without IPv6

diffstat:

1 file changed, 5 insertions(+)
src/auth/auth-request.c |    5 +++++

diffs (17 lines):

diff -r 409dc8834651 -r 42e56c396bfb src/auth/auth-request.c
--- 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 @@ static int is_ip_in_network(const char *
 		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 */


More information about the dovecot-cvs mailing list