(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:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user