summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorNingyuan Wang <nywang@google.com>2017-03-23 18:39:53 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-03-23 18:39:54 +0000
commit4990cf1ecd9df8da76ea60b56c414ff3271b30ce (patch)
treeec4c4ed7960b3f7a97d0c7c01b45b2d797a96738 /service
parentfb30401ec20fa2f82c1ae9d37efc367630bb2995 (diff)
parent6781d02916ada0ee87df09b68e4082e44932b25d (diff)
Merge "Do not return member array reference upon CMD_GET_SINGLE_SCAN_RESULTS"
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java b/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java
index a9f4b49ba..f22425dd7 100644
--- a/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java
+++ b/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java
@@ -548,7 +548,7 @@ public class WifiScanningServiceImpl extends IWifiScanner.Stub {
if (DBG) localLog("ignored full scan result event");
return HANDLED;
case WifiScanner.CMD_GET_SINGLE_SCAN_RESULTS:
- msg.obj = new WifiScanner.ParcelableScanResults(mCachedScanResults);
+ msg.obj = new WifiScanner.ParcelableScanResults(mCachedScanResults.clone());
replySucceeded(msg);
return HANDLED;
default: