Skip to content

Commit

Permalink
signature: Avoid NULL dereference with context specific login
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Nov 14, 2023
1 parent b12327b commit 597a250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/signature.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,10 +833,12 @@ static CK_RV p11prov_sig_operate_init(P11PROV_SIG_CTX *sigctx, bool digest_op,
slotid = p11prov_obj_get_slotid(sigctx->key);

ret = mech_fallback_init(sigctx, slotid);
goto done;
break;
default:
P11PROV_raise(sigctx->provctx, ret,
"Failed to open session on slot %lu", slotid);
goto done;
}

if (reqlogin) {
Expand Down

0 comments on commit 597a250

Please sign in to comment.