diff options
-rw-r--r-- | lib/libc/net/name6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index 1337598a30fe..c71511d7889e 100644 --- a/lib/libc/net/name6.c +++ b/lib/libc/net/name6.c @@ -1539,7 +1539,8 @@ _res_search_multi(name, rtl, errp) continue; hp = _hpcopy(&hpbuf, errp); hp0 = _hpmerge(hp0, hp, errp); - } + } else + *errp = h_errno; } free(buf); return (hp0); |