On Tue, Nov 14, 2023 at 01:27:33AM -0700, Florian Obser wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   [email protected] 2023/11/14 01:27:33
>
> Modified files:
>       lib/libc/asr   : gethostnamadr_async.c
>
> Log message:
> Add break to error out on weird characters in gethostbyname().
>
> Missed in previous some time ago; while here remove confusing else.
>
> Input & OK eric

This breaks DNS error handling in ifconfig.

# ifconfig foo0 foo:bar
Segmentation fault (core dumped)

#0  0x000005eb2d9dc132 in in_getaddr (s=0x70483ea0f184 "foo:bar", which=1)
    at /usr/src/sbin/ifconfig/ifconfig.c:6413
6413                            memcpy(&sin->sin_addr, hp->h_addr, 
hp->h_length);

bluhm

Reply via email to