diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-06 10:45:43 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-05-06 10:50:20 +0200 |
commit | d6a8e9d4dc8d6b5eb5b2e0341ef6e43aeb9c5c49 (patch) | |
tree | 87fd11374b09d02395f0e91cfb84a704b16d7ad6 /gradlew | |
parent | bcd8c33005bcb776ba3a94f3f18940844d3ffe67 (diff) |
tunnel: avoid race between shutdown and stats
wgTurnOff can block for a while, in which case, calling getStatistics
will use a stale handle and stale tunnel. Not only that, but wgGetConfig
might return null, in which case string.split throws.
java.lang.NullPointerException: Attempt to invoke virtual method
'java.lang.String[] java.lang.String.split(java.lang.String)' on a null
at com.wireguard.android.backend.GoBackend.getStatistics
Reported-by: tomt@adslweb.co.uk
Link: https://lists.zx2c4.com/pipermail/wireguard/2021-May/006709.html
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'gradlew')
0 files changed, 0 insertions, 0 deletions