diff --git a/src/internal.c b/src/internal.c index 7b84f5c2a..da378880c 100644 --- a/src/internal.c +++ b/src/internal.c @@ -12284,7 +12284,7 @@ int DoSessionTicket(WOLFSSL* ssl, ERROR_OUT(MEMORY_E, done_b); #endif - if ((ret = InitSha(sha) != 0)) + if ((ret = InitSha(sha)) != 0) goto done_b; ShaUpdate(sha, ssl->arrays->clientRandom, RAN_LEN); diff --git a/src/ssl.c b/src/ssl.c index d32ac5162..ac873a0ea 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -2029,7 +2029,7 @@ int PemToDer(const unsigned char* buff, long longSz, int type, header = BEGIN_ENC_PRIV_KEY; footer = END_ENC_PRIV_KEY; } else if (header == BEGIN_ENC_PRIV_KEY) { header = BEGIN_EC_PRIV; footer = END_EC_PRIV; - } else if (header == BEGIN_ENC_PRIV_KEY) { + } else if (header == BEGIN_EC_PRIV) { header = BEGIN_DSA_PRIV; footer = END_DSA_PRIV; } else break;