add else condition for logging string with OPENSSL_EXTRA

This commit is contained in:
Jacob Barthelmeh 2018-02-14 17:21:42 -07:00
parent c1b1fbaf7e
commit 1b98ccbac8
1 changed files with 5 additions and 0 deletions

View File

@ -266,6 +266,11 @@ void WOLFSSL_ERROR(int error)
* to unlock mutex and log what buffer was created. */
}
#if defined(OPENSSL_EXTRA) && !defined(WOLFCRYPT_ONLY)
}
else {
XSNPRINTF(buffer, sizeof(buffer),
"wolfSSL error occurred, error = %d", error);
}
#endif