x509: Initialize certs when building optionalSignature for OCSP requests
authorTobias Brunner <tobias@strongswan.org>
Wed, 9 Apr 2014 13:18:13 +0000 (15:18 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 9 Apr 2014 14:06:17 +0000 (16:06 +0200)
src/libstrongswan/plugins/x509/x509_ocsp_request.c

index 09c5a85..ff0f023 100644 (file)
@@ -252,7 +252,7 @@ static chunk_t build_optionalSignature(private_x509_ocsp_request_t *this,
 {
        int oid;
        signature_scheme_t scheme;
-       chunk_t certs, signature, encoding;
+       chunk_t certs = chunk_empty, signature, encoding;
 
        switch (this->key->get_type(this->key))
        {