Skip to content

Commit

Permalink
Proper fix for the RC_WARN error codes. Broken in commit f983525 (PR w…
Browse files Browse the repository at this point in the history
…olfSSL#336). ZD18641
  • Loading branch information
dgarske committed Sep 13, 2024
1 parent 6020acf commit d7f1e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tpm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5746,7 +5746,7 @@ const char* TPM2_GetRCString(int rc)
return "Success";
}

if ((rc & RC_WARN) && (rc & RC_FMT1) == 0 && (rc & RC_VER1) == 0) {
if ((rc & RC_WARN) == RC_WARN && (rc & RC_FMT1) == 0) {
int rc_warn = rc & RC_MAX_WARN;

switch (rc_warn) {
Expand Down

0 comments on commit d7f1e48

Please sign in to comment.