[dovecot-cvs] dovecot/src/auth auth-request.c,1.62,1.63

cras at dovecot.org cras at dovecot.org
Thu Aug 3 19:21:03 EEST 2006


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv18241

Modified Files:
	auth-request.c 
Log Message:
If we logged in with IPv6 address and allow_nets contained IPv4 address, we
assert-crashed.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- auth-request.c	17 Jun 2006 21:03:31 -0000	1.62
+++ auth-request.c	3 Aug 2006 16:21:01 -0000	1.63
@@ -681,7 +681,7 @@
 	if (net_addr2ip(network, &net_ip) < 0)
 		return -1;
 
-	if (IPADDR_IS_V4(ip) && !IPADDR_IS_V4(&net_ip)) {
+	if (IPADDR_IS_V4(ip) != IPADDR_IS_V4(&net_ip)) {
 		/* one is IPv6 and one is IPv4 */
 		return 0;
 	}



More information about the dovecot-cvs mailing list