diff options
author | yoonsung.nam <yoonsung.nam@samsung.com> | 2012-03-02 19:56:16 +0900 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2012-03-02 10:23:03 -0800 |
commit | 7b72ea71b90f1c12ad9b104cc2e79499d98de863 (patch) | |
tree | c3cfcbc60de46a4fe74fb2935677a8d34569ff64 /services/java/com/android/server/ConnectivityService.java | |
parent | ec418d3eae3d10cdc1b9d71f63648ce356722a94 (diff) | |
download | frameworks_base-7b72ea71b90f1c12ad9b104cc2e79499d98de863.zip frameworks_base-7b72ea71b90f1c12ad9b104cc2e79499d98de863.tar.gz frameworks_base-7b72ea71b90f1c12ad9b104cc2e79499d98de863.tar.bz2 |
Fix the bug net.dns1.pid is same as net.dns2.pid
writePidDns() does not increase the index in case first given dns
already exist in the property.
Change-Id: I1129d0042929b3ee119160e53cae0e4143c7ea88
Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
Diffstat (limited to 'services/java/com/android/server/ConnectivityService.java')
-rw-r--r-- | services/java/com/android/server/ConnectivityService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java index eab60a7..352decf 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java @@ -2179,8 +2179,9 @@ private NetworkStateTracker makeWimaxStateTracker() { String dnsString = dns.getHostAddress(); if (changed || !dnsString.equals(SystemProperties.get("net.dns" + j + "." + pid))) { changed = true; - SystemProperties.set("net.dns" + j++ + "." + pid, dns.getHostAddress()); + SystemProperties.set("net.dns" + j + "." + pid, dns.getHostAddress()); } + j++; } return changed; } |