diff options
| author | Tyler Wear <twear@quicinc.com> | 2021-08-19 09:33:26 -0700 |
|---|---|---|
| committer | Tyler Wear <twear@quicinc.com> | 2021-09-28 17:41:23 -0700 |
| commit | 614b27badd29a2a77e120662f9e5bcf899e3393b (patch) | |
| tree | 2926b511029281b202d0142bd884df3c0246f941 /tests/common/java/android/net/NetworkCapabilitiesTest.java | |
| parent | 7a45f107deb5e64fa36e9271055cd51e1e47b1b5 (diff) | |
Check NetworkAgentInfo Map Before Destroying Network
updateNetworkInfo is called with the argument in a message,
which is initialized with `this` in NetworkAgentRegistry.
That means it's technically possible that CS calls
tearDownUnneededNetwork, calling nai.disconnect() and
queuing up a message to call this, but before it's done
the NA calls sendNetworkInfo with DISCONNECTED, which
never looks up the agent from the map. Throwing a
ServiceSpecificException and resulting in a System crash.
Bug: 196423147
Change-Id: Ia52f2b794f32c263200c14b8dc2eb6b184bff5ff
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions
