PR: 2244
authorDr. Stephen Henson <steve@openssl.org>
Mon, 3 May 2010 12:50:36 +0000 (12:50 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 3 May 2010 12:50:36 +0000 (12:50 +0000)
Submitted By: "PMHager" <hager@dortmund.net>

Initialise pkey callback to 0.

crypto/evp/pmeth_lib.c

index e4a08fb96d3295d10fb0026cf5c308aae58535f6..29448c00ecba750ac73eb0ee6d045cb9a5597fdc 100644 (file)
@@ -178,6 +178,7 @@ static EVP_PKEY_CTX *int_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id)
        ret->operation = EVP_PKEY_OP_UNDEFINED;
        ret->pkey = pkey;
        ret->peerkey = NULL;
+       ret->pkey_gencb = 0;
        if (pkey)
                CRYPTO_add(&pkey->references,1,CRYPTO_LOCK_EVP_PKEY);
        ret->data = NULL;