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

Commit aa69a3e8 authored by Luke Huang's avatar Luke Huang Committed by android-build-merger
Browse files

Merge "Fix wrong netId handle in ResNSendHandler" am: 670affc42a

am: 25215e90a4

Change-Id: I7fee01ac975dbc281692365498e7f766a01fbfec
parents 4f411eed 3c69faf2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -790,9 +790,12 @@ int DnsProxyListener::ResNSendCommand::runCommand(SocketClient* cli, int argc, c
        return -1;
    }

    const bool useLocalNameservers = checkAndClearUseLocalNameserversFlag(&netId);

    android_net_context netcontext;
    gResNetdCallbacks.get_network_context(netId, uid, &netcontext);
    if (checkAndClearUseLocalNameserversFlag(&netId)) {

    if (useLocalNameservers) {
        netcontext.flags |= NET_CONTEXT_FLAG_USE_LOCAL_NAMESERVERS;
    }