chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce4c03f
)
Initialize the right scope field
author
Lennart Poettering
<lennart@poettering.net>
Sun, 5 Apr 2009 00:13:53 +0000
(
02:13
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 5 Apr 2009 00:13:53 +0000
(
02:13
+0200)
Problem identified by Simo Sorce
nss-myhostname.c
patch
|
blob
|
history
diff --git
a/nss-myhostname.c
b/nss-myhostname.c
index 758a1855321c0bd034effd13db3eef71285b69c7..14ed30b8929d34fb978628e0e343709f714224bf 100644
(file)
--- 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_tuple
1
->scopeid = (uint32_t) ifi;
+ r_tuple
2
->scopeid = (uint32_t) ifi;
idx += ALIGN(sizeof(struct gaih_addrtuple));
/* Verify the size matches */