pkcs15-oberthur-awp: Do not confuse cppcheck

This commit is contained in:
Jakub Jelen 2018-09-27 15:04:53 +02:00 committed by Frank Morgner
parent e920ef8eb8
commit a1dfdbbdbc
1 changed files with 3 additions and 2 deletions

View File

@ -284,9 +284,10 @@ awp_create_container_record (struct sc_pkcs15_card *p15card, struct sc_profile *
memset(buff, 0, list_file->record_length);
rv = awp_new_container_entry(p15card, buff, list_file->record_length);
if (rv < 0) {
if (rv < 0) {
free(buff);
SC_TEST_RET(ctx, SC_LOG_DEBUG_NORMAL, rv, "Cannot create container");
sc_log(ctx, "Cannot create container");
SC_FUNC_RETURN(ctx, SC_LOG_DEBUG_NORMAL, rv);
}
*(buff + 0) = (acc->pubkey_id >> 8) & 0xFF;