Skip to content

Commit

Permalink
up x509 ref count with obj creation
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Dec 24, 2024
1 parent 93812e4 commit 69e183c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/x509_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -1879,6 +1879,11 @@ WOLF_STACK_OF(WOLFSSL_X509_OBJECT)* wolfSSL_X509_STORE_get0_objects(
wolfSSL_X509_OBJECT_free(obj);
goto err_cleanup;
}
if (wolfSSL_X509_up_ref(x509) != WOLFSSL_SUCCESS) {
WOLFSSL_MSG("wolfSSL_X509_up_ref error");
wolfSSL_X509_OBJECT_free(obj);
goto err_cleanup;
}
obj->type = WOLFSSL_X509_LU_X509;
obj->data.x509 = x509;
}
Expand Down

0 comments on commit 69e183c

Please sign in to comment.