Skip to content

Commit 3bc9472

Browse files
committed
piv: don't abort on piv_read_slot(_, 0x9b)
1 parent 8556491 commit 3bc9472

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

piv.c

+1
Original file line numberDiff line numberDiff line change
@@ -2796,6 +2796,7 @@ piv_read_cert(struct piv_token *pk, enum piv_slotid slotid)
27962796
}
27972797
err = argerrf("slotid", "a supported PIV slot number",
27982798
"%02x", slotid);
2799+
tlv_pop(tlv);
27992800
tlv_free(tlv);
28002801
return (err);
28012802
}

0 commit comments

Comments
 (0)