[dovecot-cvs] dovecot/src/auth auth-request.c,1.58.2.5,1.58.2.6
cras at dovecot.org
cras at dovecot.org
Thu Aug 3 19:21:00 EEST 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv6221
Modified Files:
Tag: branch_1_0
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.58.2.5
retrieving revision 1.58.2.6
diff -u -d -r1.58.2.5 -r1.58.2.6
--- auth-request.c 17 Jun 2006 21:03:30 -0000 1.58.2.5
+++ auth-request.c 3 Aug 2006 16:20:58 -0000 1.58.2.6
@@ -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