Skip to content

Commit

Permalink
piv: piv_cardcap_encode fails to initialise 'err'
Browse files Browse the repository at this point in the history
found in #47
  • Loading branch information
arekinath committed Jan 30, 2024
1 parent e4cfc19 commit bc25503
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions piv.c
Original file line number Diff line number Diff line change
Expand Up @@ -8761,6 +8761,8 @@ piv_cardcap_encode(const struct piv_cardcap *cc, uint8_t **out, size_t *len)
}
bcopy(tlv_buf(tlv), *out, *len);

err = ERRF_OK;

out:
tlv_free(tlv);
free(buf);
Expand Down

0 comments on commit bc25503

Please sign in to comment.