Initialize the right scope field

Problem identified by Simo Sorce
This commit is contained in:
Lennart Poettering
2009-04-05 02:13:53 +02:00
parent ce4c03fad0
commit 15ef6d41d6
+1 -1
View File
@@ -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 */