Merge "Connectivity: Fix map access"

This commit is contained in:
Treehugger Robot
2018-03-06 05:39:39 +00:00
committed by Gerrit Code Review

View File

@@ -187,7 +187,7 @@ public class DnsManager {
Slog.w(TAG, "updatePrivateDns(" + network + ", " + cfg + ")");
return (cfg != null)
? mPrivateDnsMap.put(network.netId, cfg)
: mPrivateDnsMap.remove(network);
: mPrivateDnsMap.remove(network.netId);
}
public void setDnsConfigurationForNetwork(