Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4533:92199dcb4018 HEAD
If we logged in with IPv6 address and allow_nets contained IPv4 address, we
assert-crashed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 03 Aug 2006 19:21:01 +0300 |
parents | d83f2a6e1f45 |
children | dee19849654b |
files | src/auth/auth-request.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-request.c Thu Aug 03 18:37:55 2006 +0300 +++ b/src/auth/auth-request.c Thu Aug 03 19:21:01 2006 +0300 @@ -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; }