From 11814bbbae6674a12cfc1d82db4b44653696a674 Mon Sep 17 00:00:00 2001 From: Maarten de Vries Date: Thu, 16 Feb 2017 11:00:49 +0100 Subject: nss-resolve: Fix assertion in ifindex_to_scopeid. (#5360) --- src/nss-resolve/nss-resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c index 440dd4b78a..d155625e11 100644 --- a/src/nss-resolve/nss-resolve.c +++ b/src/nss-resolve/nss-resolve.c @@ -118,7 +118,7 @@ static uint32_t ifindex_to_scopeid(int family, const void *a, int ifindex) { /* Some apps can't deal with the scope ID attached to non-link-local addresses. Hence, let's suppress that. */ - assert(sizeof(in6) == FAMILY_ADDRESS_SIZE(AF_INET)); + assert(sizeof(in6) == FAMILY_ADDRESS_SIZE(AF_INET6)); memcpy(&in6, a, sizeof(struct in6_addr)); return IN6_IS_ADDR_LINKLOCAL(&in6) ? ifindex : 0; -- cgit v1.2.3-54-g00ecf