diff options
author | Maarten de Vries <maarten@de-vri.es> | 2017-02-16 11:00:49 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-02-16 11:00:49 +0100 |
commit | 11814bbbae6674a12cfc1d82db4b44653696a674 (patch) | |
tree | 731220b27a558f80557d80a6db58aa47667db8fc /src | |
parent | e36c6e48fbfe785629c515c070d90fb63c8ca4de (diff) |
nss-resolve: Fix assertion in ifindex_to_scopeid. (#5360)
Diffstat (limited to 'src')
-rw-r--r-- | src/nss-resolve/nss-resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |