Re: sockaddr initialize zero

2015-08-19 Thread Theo de Raadt
> Struct sockaddr_in and sockaddr_in6 should always be initialized > to zero. In the kernel, for sure. Just in case a bcmp is run by someone, or a whole sockaddr is copied out to userland. In userland, the policy is not quite the same. There (as guenther has explained in various forums) the ide

sockaddr initialize zero

2015-08-19 Thread Alexander Bluhm
Hi, Struct sockaddr_in and sockaddr_in6 should always be initialized to zero. Most of the kernel does this already, this diff fixes all other places there sin_family is assigned. Do not pass around pointers to uninitialized stack memory. There are some global route variables, I think the paddin