diff options
author | Xiao Ma <xiaom@google.com> | 2020-05-07 12:26:30 +0000 |
---|---|---|
committer | Xiao Ma <xiaom@google.com> | 2020-05-07 13:22:51 +0000 |
commit | 32bee5e753cfc9902fe72d49b96011018824e2fa (patch) | |
tree | 8c4e184fca33b7b2b6ce320ef822ca86cf3cfbf3 /src/android/net/dhcp/DhcpPacket.java | |
parent | b12790b92269c9810122c414d77a592f9f17cc35 (diff) |
Set clientId when parsing an explicit DHCP_CLIENT_IDENTIFIER option.
Bug: 130741856
Test: atest NetworkStackTests TetheringTests
Test: manually turn on the hotspot and verify the downstream device
can attach to the upstream hotspot, then turn it off, repeat
multiple times.
Merged-In: I9da5fec47a74de36869e795fa9b1d7170d2f91c9
Change-Id: I9da5fec47a74de36869e795fa9b1d7170d2f91c9
Diffstat (limited to 'src/android/net/dhcp/DhcpPacket.java')
-rw-r--r-- | src/android/net/dhcp/DhcpPacket.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/net/dhcp/DhcpPacket.java b/src/android/net/dhcp/DhcpPacket.java index 852719e..a4dbda1 100644 --- a/src/android/net/dhcp/DhcpPacket.java +++ b/src/android/net/dhcp/DhcpPacket.java @@ -1182,8 +1182,8 @@ public abstract class DhcpPacket { vendorId = readAsciiString(packet, optionLen, true); break; case DHCP_CLIENT_IDENTIFIER: { // Client identifier - byte[] id = new byte[optionLen]; - packet.get(id); + clientId = new byte[optionLen]; + packet.get(clientId); expectedLen = optionLen; } break; case DHCP_VENDOR_INFO: |