Skip to content

Commit 6ae0ecc

Browse files
authored
Merge pull request #9133 from AlexLanzano/log-fix
Fix value comparison typo in if statement
2 parents cfee026 + 8207053 commit 6ae0ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/logging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ static void wolfssl_log(const int logLevel, const char* const file_name,
397397
/* Assume zero-terminated msg, len less than WOLFSSL_MSG_CERT_BUF_SZ */
398398
written = XVSNPRINTF(msg, WOLFSSL_MSG_CERT_BUF_SZ, fmt, args);
399399
va_end(args);
400-
if ((written > 0) && (loggingCertEnabled =! 0)) {
400+
if ((written > 0) && (loggingCertEnabled != 0)) {
401401
wolfssl_log(INFO_LOG, NULL, 0, msg);
402402
}
403403
#ifdef WOLFSSL_SMALL_STACK

0 commit comments

Comments
 (0)