Skip to content

Commit bc25503

Browse files
committed
piv: piv_cardcap_encode fails to initialise 'err'
found in #47
1 parent e4cfc19 commit bc25503

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

piv.c

+2
Original file line numberDiff line numberDiff line change
@@ -8761,6 +8761,8 @@ piv_cardcap_encode(const struct piv_cardcap *cc, uint8_t **out, size_t *len)
87618761
}
87628762
bcopy(tlv_buf(tlv), *out, *len);
87638763

8764+
err = ERRF_OK;
8765+
87648766
out:
87658767
tlv_free(tlv);
87668768
free(buf);

0 commit comments

Comments
 (0)