summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-03-03 15:12:00 -0500
committerMike Lockwood <lockwood@android.com>2010-03-03 15:13:58 -0500
commit51cb9d5d55a673f329c17a689f724af772257804 (patch)
treed4f9ca764b22272f3c84968a90b32e7e72348afa
parent687c44f2f02cecc4103c611ead225f990402d1af (diff)
downloadframeworks_base-51cb9d5d55a673f329c17a689f724af772257804.zip
frameworks_base-51cb9d5d55a673f329c17a689f724af772257804.tar.gz
frameworks_base-51cb9d5d55a673f329c17a689f724af772257804.tar.bz2
Fix off by one error in NetworkManagementService.isUsbRNDISStarted()
Change-Id: I74eea36464696d63ad072661704b410bfe40c1c8 Signed-off-by: Mike Lockwood <lockwood@android.com>
-rw-r--r--services/java/com/android/server/NetworkManagementService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/NetworkManagementService.java b/services/java/com/android/server/NetworkManagementService.java
index 6d121c3..53076de 100644
--- a/services/java/com/android/server/NetworkManagementService.java
+++ b/services/java/com/android/server/NetworkManagementService.java
@@ -447,7 +447,7 @@ class NetworkManagementService extends INetworkManagementService.Stub {
String []tok = line.split(" ");
int code = Integer.parseInt(tok[0]);
if (code == NetdResponseCode.UsbRNDISStatusResult) {
- if (tok[2].equals("started"))
+ if (tok[3].equals("started"))
return true;
return false;
} else {