diff options
Diffstat (limited to 'common/ccd_config.c')
-rw-r--r-- | common/ccd_config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/ccd_config.c b/common/ccd_config.c index a3d419356c..2b97ba3133 100644 --- a/common/ccd_config.c +++ b/common/ccd_config.c @@ -822,15 +822,15 @@ static int ccd_command_wrapper(int argc, char *password, vch->ccd_subcommand = subcmd; memcpy(vch + 1, password, password_size); - tpm_alt_extension(&vch->tpm_header, sizeof(buf)); + tpm_alt_extension(&vch->tpm_header, sizeof(buf)); /* * Return status in the command code field now, in case of error, * error code is the first byte after the header. */ return_code = be32toh(vch->tpm_header.command_code); - if ((return_code != EC_SUCCESS) && - (return_code != VENDOR_RC_IN_PROGRESS)) { + if ((return_code != VENDOR_RC_SUCCESS) && + (return_code != (VENDOR_RC_IN_PROGRESS|VENDOR_RC_ERR))) { return vch->ccd_subcommand; } return EC_SUCCESS; |