diff options
Diffstat (limited to 'addrmatch.c')
-rw-r--r-- | addrmatch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addrmatch.c b/addrmatch.c index 2086afe84..f3c861a1f 100644 --- a/addrmatch.c +++ b/addrmatch.c | |||
@@ -97,7 +97,9 @@ addr_sa_to_xaddr(struct sockaddr *sa, socklen_t slen, struct xaddr *xa) | |||
97 | return -1; | 97 | return -1; |
98 | xa->af = AF_INET6; | 98 | xa->af = AF_INET6; |
99 | memcpy(&xa->v6, &in6->sin6_addr, sizeof(xa->v6)); | 99 | memcpy(&xa->v6, &in6->sin6_addr, sizeof(xa->v6)); |
100 | #ifdef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID | ||
100 | xa->scope_id = in6->sin6_scope_id; | 101 | xa->scope_id = in6->sin6_scope_id; |
102 | #endif | ||
101 | break; | 103 | break; |
102 | default: | 104 | default: |
103 | return -1; | 105 | return -1; |