android: Ensure that the certificates are loaded when accessing them via JNI

This commit is contained in:
Tobias Brunner
2016-12-08 17:14:49 +01:00
parent 85059424a7
commit 3e85b5a492
@@ -542,7 +542,7 @@ public class CharonVpnService extends VpnService implements Runnable, VpnStateSe
private byte[][] getTrustedCertificates()
{
ArrayList<byte[]> certs = new ArrayList<byte[]>();
TrustedCertificateManager certman = TrustedCertificateManager.getInstance();
TrustedCertificateManager certman = TrustedCertificateManager.getInstance().load();
try
{
String alias = this.mCurrentCertificateAlias;