Re: Fix regression in in_pcbbind(), bug observable with INET6

2016-04-06 Thread Alexander Bluhm
On Wed, Apr 06, 2016 at 05:20:32PM +0200, Vincent Gross wrote: > The regression test in regress/sys/netinet6/autoport is failing because > my merge of in_pcbbind() and in6_pcbbind() introduced a bug. Long story > short, if nam == NULL, then you skip the part where you check if the socket > is alrea

Fix regression in in_pcbbind(), bug observable with INET6

2016-04-06 Thread Vincent Gross
The regression test in regress/sys/netinet6/autoport is failing because my merge of in_pcbbind() and in6_pcbbind() introduced a bug. Long story short, if nam == NULL, then you skip the part where you check if the socket is already bound based on inp_laddr/inp_laddr6. Also INPLOOKUP_IPV6 is not set