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

Commit 3c69faf2 authored by Luke Huang's avatar Luke Huang Committed by Gerrit Code Review
Browse files

Merge "Fix wrong netId handle in ResNSendHandler"

parents 74c2a01f cb346136
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;
    }