tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: getnameinfo extra len checking
On Thu, Jun 17, 2010 at 07:35:09PM -0400, Christos Zoulas wrote:
> On Jun 17, 5:25pm, tls%panix.com@localhost (Thor Lancelot Simon) wrote:
> -- Subject: Re: getnameinfo extra len checking
>
> | On Thu, Jun 17, 2010 at 09:02:16PM +0000, Christos Zoulas wrote:
> | >
> | > What is sa_len in that case? I think it is 0. If so, then we can
> allow
> | > 0 through.
> |
> | What's setting 0? Not setting sa_len is bogus.
>
> Right, linux code that does not set sa_len...
>
sa_len was 0 in this case. Playing devils advocate...
Having to specify it twice could be considered redundant.
There's precedence other than linux for removing this
check: [free][open][dragonfly]bsd.
Regards,
-seanb
Home |
Main Index |
Thread Index |
Old Index