wireguard-android/tunnel
Jason A. Donenfeld d6a8e9d4dc 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>
2021-05-06 10:50:20 +02:00
..
src tunnel: avoid race between shutdown and stats 2021-05-06 10:50:20 +02:00
tools tools: bump deps 2021-05-05 13:02:56 +02:00
build.gradle build: switch to Gradle's maven-publish plugin 2020-11-07 18:53:06 +05:30
publish.gradle tunnel: add developer information to pom xml 2021-02-11 16:40:34 +01:00