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
Kconfig
Kconfig.shell
tls_credentials_digest_raw.c
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
tls_credentials.c net: lib: tls_credentials: return size required 2024-12-20 03:17:10 +01:00
tls_internal.h