From b397f89b272435e0dadade487ecdf74bfbf3f56b Mon Sep 17 00:00:00 2001 From: toddouska Date: Tue, 26 Feb 2013 09:00:46 -0800 Subject: [PATCH] better inits for sniffer use --- src/internal.c | 2 ++ 1 file changed, 2 insertions(+) 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 */