mirror of
https://github.com/samba-team/samba.git
synced 2025-12-14 20:23:54 +03:00
Fix bug in writing names into gencache
as well as 2 typos where AF_INET6 was mistypes as AF_INET. JERRY YOU NEED THESE FIXES. Fixes smbclient -L localhost -U% Bugs reported by Kukks (thanks kukks). Jeremy.
This commit is contained in:
@@ -100,14 +100,6 @@ void setup_linklocal_scope_id(struct sockaddr_storage *pss)
|
||||
return;
|
||||
}
|
||||
}
|
||||
for (i=local_interfaces;i;i=i->next) {
|
||||
if (same_net(pss, &i->ip, &i->netmask)) {
|
||||
struct sockaddr_in6 *psa6 =
|
||||
(struct sockaddr_in6 *)pss;
|
||||
psa6->sin6_scope_id = if_nametoindex(i->name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user