[Pkg-telepathy-commits] [libnice] 250/265: address: Correctly identify ipv6 link local
Simon McVittie
smcv at debian.org
Wed May 14 12:05:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit 44395d8175c5fc406270192b2d6fdfc3b297c901
Author: Olivier Crête <olivier.crete at collabora.com>
Date: Thu Apr 24 21:27:29 2014 -0400
address: Correctly identify ipv6 link local
The test for fe80::/10 always returned FALSE.
---
agent/address.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agent/address.c b/agent/address.c
index 6e31c81..830873c 100644
--- a/agent/address.c
+++ b/agent/address.c
@@ -339,7 +339,7 @@ ipv6_address_is_private (const guchar *addr)
{
return (
/* fe80::/10 */
- ((addr[0] == 0xfe) && ((addr[1] & 0xc) == 0x80)) ||
+ ((addr[0] == 0xfe) && ((addr[1] & 0xc0) == 0x80)) ||
/* fc00::/7 */
((addr[0] & 0xfe) == 0xfc) ||
/* ::1 loopback */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list