From: fendo Date: Thu, 28 Mar 2013 09:35:18 +0000 (+0100) Subject: Merge branch 'multibind' X-Git-Tag: 2.2.1-2fdn3.7~1 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/c1d1c2a8c4f22c3911d392393072327b0e319c5e?hp=137bcc99810a8bfc97030eceee52a96c75e91987 Merge branch 'multibind' --- diff --git a/ppp.c b/ppp.c index 960a269..cb39db6 100644 --- a/ppp.c +++ b/ppp.c @@ -2238,7 +2238,7 @@ void processipv6in(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l) return; // no spoof - if (ipv4 != session[s].ip && memcmp(&config->ipv6_prefix, &ip, 8) && sessionbyipv6(ip) != s) + if ((ipv4 != session[s].ip || memcmp(&config->ipv6_prefix, &ip, 8)) && sessionbyipv6(ip) != s) { char str[INET6_ADDRSTRLEN]; LOG(5, s, t, "Dropping packet with spoofed IP %s\n",