android: Terminate IKE_SA if initial IKE_SA_INIT fails
authorTobias Brunner <tobias@strongswan.org>
Thu, 17 Jul 2014 13:22:29 +0000 (15:22 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 22 Jul 2014 09:10:36 +0000 (11:10 +0200)
commit5fd9e5fd009995ce0b6fed738efc00d90a0d1f89
tree8eb8d31a25d0e627cdb2b505b20ca8f3c869fa77
parent945832c67d139a2a7a3006c0b97894b78ee9caf9
android: Terminate IKE_SA if initial IKE_SA_INIT fails

Since VpnStateService.disconnect() is now not called until the error
dialog is dismissed the daemon would continue to try connecting.
So while the error dialog is shown the connection might actually be
successfully established in the background, which is not intended.

This way the IKE_SA is destroyed right after sending the IKE_SA_INIT of
the second connection attempt (due to keyingtries=0).
src/frontends/android/jni/libandroidbridge/backend/android_service.c