Skip to content

Commit

Permalink
tls: NULL safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
space88man committed Mar 5, 2024
1 parent 5b4926b commit f6f9d90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/tls/tls_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,8 @@ EVP_PKEY *tls_engine_private_key(const char *key_id)

while(!(OSSL_STORE_eof(ctx))) {
OSSL_STORE_INFO *info = OSSL_STORE_load(ctx);
if(info == NULL)
continue;

int type;
type = OSSL_STORE_INFO_get_type(info);
Expand Down

0 comments on commit f6f9d90

Please sign in to comment.