pkcs8: Initialize salt and IV properly.
authorTobias Brunner <tobias@strongswan.org>
Fri, 18 May 2012 06:36:37 +0000 (08:36 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 18 May 2012 06:36:37 +0000 (08:36 +0200)
src/libstrongswan/plugins/pkcs8/pkcs8_builder.c

index 346240a..d34a185 100644 (file)
@@ -535,7 +535,7 @@ static const asn1Object_t encryptedPKIObjects[] = {
 static private_key_t *parse_encrypted_private_key(chunk_t blob)
 {
        asn1_parser_t *parser;
-       chunk_t object, params, salt, iv;
+       chunk_t object, params, salt = chunk_empty, iv = chunk_empty;
        u_int64_t iterations = 0;
        int objectID;
        encryption_algorithm_t encr = ENCR_UNDEFINED;