diff options
author | Tim Rice <tim@multitalents.net> | 2008-11-18 21:26:41 -0800 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2008-11-18 21:26:41 -0800 |
commit | 0f4d2c02f275ad9f80ccd7435ffb407a8be61e9a (patch) | |
tree | a43f4cd82ace12ebb5ab6490d62f13469dd16263 /addrmatch.c | |
parent | edecb37a4b7e1b31f69139344af927e602f31c11 (diff) | |
download | openssh-git-0f4d2c02f275ad9f80ccd7435ffb407a8be61e9a.tar.gz |
- (tim) [addrmatch.c configure.ac] Some platforms do not have sin6_scope_id
member of sockaddr_in6. Also reported in Bug 1491 by David Leonard. OK and
feedback by djm@
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 2086afe8..f3c861a1 100644 --- a/addrmatch.c +++ b/addrmatch.c @@ -97,7 +97,9 @@ addr_sa_to_xaddr(struct sockaddr *sa, socklen_t slen, struct xaddr *xa) return -1; xa->af = AF_INET6; memcpy(&xa->v6, &in6->sin6_addr, sizeof(xa->v6)); +#ifdef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID xa->scope_id = in6->sin6_scope_id; +#endif break; default: return -1; |