polarssl: init certificate storage
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jan 2016 23:04:45 +0000 (00:04 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jan 2016 23:04:45 +0000 (00:04 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-polarssl.c

index 9208e6a504cf771493a44849d1b3f852ee9a400c..7135d3c3952773cf12af3fb22cbf2db946c58fbe 100644 (file)
@@ -100,6 +100,8 @@ __ustream_ssl_context_new(bool server)
 
        ctx->server = server;
        pk_init(&ctx->key);
+       x509_crt_init(&ctx->ca_cert);
+       x509_crt_init(&ctx->cert);
 
        return ctx;
 }