diff options
author | Elliott Hughes <enh@google.com> | 2011-09-29 16:53:00 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-09-30 10:49:07 -0700 |
commit | 9b4a8ec37805be3eabf3a4b443bbdb692ffa2608 (patch) | |
tree | bb3c313a56b5772eef2d25b5863cfd95154681ec /dalvik/MODULE_LICENSE_APACHE2 | |
parent | 92cb29d71ca8fadc9b738a33e63ca39807647463 (diff) | |
download | libcore-9b4a8ec37805be3eabf3a4b443bbdb692ffa2608.zip libcore-9b4a8ec37805be3eabf3a4b443bbdb692ffa2608.tar.gz libcore-9b4a8ec37805be3eabf3a4b443bbdb692ffa2608.tar.bz2 |
Fix a couple of isReachable bugs.
We shouldn't throw NPE if you call isReachable on a deserialized InetAddress.
Fixed by removing the "globals", which also fixes the unreported bug that
calling isReachable on the same InetAddress was not thread-safe.
Bug: http://code.google.com/p/android/issues/detail?id=20203
Also, the arguments to isReachableByTCP in isReachable(NetworkInterface, int, int)
were the wrong way round, which meant we'd always return false (unless you were
asking if localhost was reachable).
Bug: http://code.google.com/p/android/issues/detail?id=20107
Bug: 2497441
Bug: 3213503
Change-Id: Ic808e774c28be6487e30e6acb8bc06f766f5c71d
Diffstat (limited to 'dalvik/MODULE_LICENSE_APACHE2')
0 files changed, 0 insertions, 0 deletions