(find_all_addresses): remember to add in the size of ifr->ifr_name

when using SA_LEN


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8370 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-06-10 06:14:57 +00:00
parent 755f4a7591
commit 0ecd6dea26

View File

@@ -171,7 +171,7 @@ find_all_addresses (krb5_context context,
sz = max(sz, sizeof(ifr->ifr_name) + sa->sa_len);
#endif
#ifdef SA_LEN
sz = max(sz, SA_LEN(sa));
sz = max(sz, sizeof(ifr->ifr_name) + SA_LEN(sa));
#endif
memcpy (ifreq.ifr_name, ifr->ifr_name, sizeof(ifr->ifr_name));