Initialise alg.
authorDavid Ramos <daramos@stanford.edu>
Sun, 1 Jun 2014 12:03:05 +0000 (13:03 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 1 Jun 2014 12:05:08 +0000 (13:05 +0100)
PR#3313
(cherry picked from commit 7e2c6f7eb01515a990f77fbc5441be8e1a17152a)

engines/ccgost/gost_ameth.c

index 2cde1fcfd9dfe492f6486911d98dc0eeee9975da..8b9230b9ab4296054b60d09ef2c760f3c2de77e3 100644 (file)
@@ -269,7 +269,7 @@ static int pkey_ctrl_gost(EVP_PKEY *pkey, int op,
                case ASN1_PKEY_CTRL_CMS_ENVELOPE:
                        if (arg1 == 0)
                                {
-                               X509_ALGOR *alg;
+                               X509_ALGOR *alg = NULL;
                                ASN1_STRING * params = encode_gost_algor_params(pkey);
                                if (!params) 
                                        {