Commit 3b2919b
libopensc: guard NULL tries_left in dtrust PIN info
sc_pkcs15_get_pin_info() passes tries_left == NULL to sc_pin_cmd().
In dtrust_pin_cmd_get_info(), the CAN branch dereferenced tries_left unconditionally,
which caused a SIGSEGV during pkcs11-tool -L token enumeration.
Guard the write with a NULL check.
Fixes OpenSC#35861 parent 306a425 commit 3b2919b
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
613 | 615 | | |
614 | 616 | | |
615 | 617 | | |
| |||
0 commit comments