Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d942ca43 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Revet part of aosp/2163902"

parents 45e5a867 980f297e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1792,6 +1792,7 @@ static int res_searchN(const char* name, res_target* target, ResState* res, int*

    hp = (HEADER*)(void*)target->answer.data();

    errno = 0;
    *herrno = HOST_NOT_FOUND; /* default, if we never query */
    dots = 0;
    for (cp = name; *cp; cp++) dots += (*cp == '.');
+1 −0
Original line number Diff line number Diff line
@@ -211,6 +211,7 @@ int res_nsearch(ResState* statp, const char* name, /* domain name */
    int got_nodata = 0, got_servfail = 0, root_on_list = 0;
    int tried_as_is = 0;

    errno = 0;
    *herrno = HOST_NOT_FOUND; /* True if we never query. */

    dots = 0;
+1 −0
Original line number Diff line number Diff line
@@ -780,6 +780,7 @@ same_ns:
                return -1;
            }
        }
        errno = 0;
        if (random_bind(statp->tcp_nssock, nsap->sa_family) < 0) {
            *terrno = errno;
            dump_error("bind/vc", nsap);