Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Jun 10, 2024
1 parent 4c3f7af commit ae95102
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,12 @@ static char *ssl_printnum(ASN1_INTEGER *i)
char *data, *buf;
BIO *bio = BIO_new(BIO_s_mem());

if (!bio) {
debug0("TLS: ssl_printnum(): BIO_new(): error");
buf = nmalloc(1);
*buf = 0;
return buf;
}
i2a_ASN1_INTEGER(bio, i);
len = BIO_get_mem_data(bio, &data);
if (len > 0) {
Expand Down

0 comments on commit ae95102

Please sign in to comment.