Module: kamailio Branch: 5.7 Commit: d03d5fdf2b6a29e783738a6ea98c35725826d9ed URL: https://github.com/kamailio/kamailio/commit/d03d5fdf2b6a29e783738a6ea98c3572...
Author: S-P Chan shihping.chan@gmail.com Committer: S-P Chan shihping.chan@gmail.com Date: 2024-03-23T21:09:14+08:00
tls: NULL safety check
(cherry picked from commit f6f9d90ada963b53b6552e1a172b8f2fd021c33b)
---
Modified: src/modules/tls/tls_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/d03d5fdf2b6a29e783738a6ea98c3572... Patch: https://github.com/kamailio/kamailio/commit/d03d5fdf2b6a29e783738a6ea98c3572...
---
diff --git a/src/modules/tls/tls_mod.c b/src/modules/tls/tls_mod.c index 51e88bed51f..c2a3c8de271 100644 --- a/src/modules/tls/tls_mod.c +++ b/src/modules/tls/tls_mod.c @@ -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);