summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-05 02:13:53 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-05 02:13:53 +0200
commit15ef6d41d685b60f8e41ff298534bcc5ddcfa73c (patch)
tree71173c704651442cff55c8e0b1568b1016047a92
parentce4c03fad012bdf4531c2d3ca1dd00e42ef89578 (diff)
Initialize the right scope field
Problem identified by Simo Sorce
-rw-r--r--nss-myhostname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss-myhostname.c b/nss-myhostname.c
index 758a185..14ed30b 100644
--- a/nss-myhostname.c
+++ b/nss-myhostname.c
@@ -103,7 +103,7 @@ enum nss_status _nss_myhostname_gethostbyname4_r(
r_tuple2->name = r_name;
r_tuple2->family = AF_INET6;
memcpy(r_tuple2->addr, LOCALADDRESS_IPV6, 16);
- r_tuple1->scopeid = (uint32_t) ifi;
+ r_tuple2->scopeid = (uint32_t) ifi;
idx += ALIGN(sizeof(struct gaih_addrtuple));
/* Verify the size matches */