diff --git a/src/internal.c b/src/internal.c index 6348ca9b3..ad4ae932a 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1221,6 +1221,7 @@ int InitSSL(CYASSL* ssl, CYASSL_CTX* ctx) ssl->dtls_pool = NULL; ssl->dtls_msg_list = NULL; #endif + ssl->keys.encryptSz = 0; ssl->keys.encryptionOn = 0; /* initially off */ ssl->keys.decryptedCur = 0; /* initially off */ ssl->options.sessionCacheOff = ctx->sessionCacheOff; @@ -1301,6 +1302,7 @@ int InitSSL(CYASSL* ssl, CYASSL_CTX* ctx) ssl->rng = NULL; ssl->arrays = NULL; InitCiphers(ssl); + InitCipherSpecs(&ssl->specs); /* all done with init, now can return errors, call other stuff */ /* increment CTX reference count */