tech-net archive

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

Re: getnameinfo extra len checking

In article <>,
Sean Boudreau  <> wrote:
>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;                                             

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


Home | Main Index | Thread Index | Old Index