zephyr/subsys/net/lib/tls_credentials
Joakim Andersson 8457db52c7 net: tls_credentials: Do not free slot when cred buf is NULL
Do not free the slot when cred buf is NULL.
If the TLS credential storage backend does not have a buffer pointer
to the TLS credential, then the buffer pointer can be NULL.
This may happen with an out-of-tree TLS credential storage backend.

In this case where credential buffer is NULL find_ref_slot retrieves
a new slot, and then tries to free it, causing a crash.

Signed-off-by: Joakim Andersson <joerchan@gmail.com>
2025-01-28 09:51:43 +01:00
..
CMakeLists.txt tf-m: Change NS include path for TF-M 2.0.0 2024-01-17 16:52:52 +01:00
Kconfig net: tls_credentials: use PSA to compute SHA256 when BUILD_WITH_TFM 2024-05-08 22:14:19 -07:00
Kconfig.shell
tls_credentials_digest_raw.c net: tls_credentials: Add missing base64.h header inclusion 2024-05-23 07:47:41 -04:00
tls_credentials_digest_raw.h
tls_credentials_shell.c net: tls_credentials: Do not free slot when cred buf is NULL 2025-01-28 09:51:43 +01:00
tls_credentials_trusted.c net: lib: fix typo 2024-07-12 09:33:20 -04:00
tls_credentials.c net: lib: tls_credentials: return size required 2024-12-20 03:17:10 +01:00
tls_internal.h