tech-net archive

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

Re: getnameinfo extra len checking



In article <20100617170429.GH737318%qnx.com@localhost>,
Sean Boudreau  <seanb%qnx.com@localhost> wrote:
>
>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                                                                       

What is sa_len in that case? I think it is 0. If so, then we can allow
0 through.

christos



Home | Main Index | Thread Index | Old Index