tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

getnameinfo extra len checking



Hi,

Does anyone know the history of this check in getnameinfo_inet()?  Is it
needed?  This breaks, for example 'nmblookup \*' from samba.  FreeBSD,
linux don't so this.

#ifdef BSD4_4                                                                
        if (sa->sa_len != salen)                                             
                return EAI_FAIL;                                             
#endif                                                                       

Regards,

-seanb


Home | Main Index | Thread Index | Old Index