With fewer `sz', things tend to work better.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3285 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-30 11:32:47 +00:00
parent cea33c6c29
commit 8ae8844871

View File

@@ -130,7 +130,7 @@ find_all_addresses (krb5_addresses *res, int loop)
/* This is somewhat kludgy, but it seems to work. */
size_t sz = sizeof(*ifr);
sz = sizeof(*ifr);
#ifdef SOCKADDR_HAS_SA_LEN
if(ifr->ifr_addr.sa_len)
sz = sizeof(ifr->ifr_name) + ifr->ifr_addr.sa_len;