]> git.ipfire.org Git - thirdparty/chrony.git/commit
tls: don't accept NULL ALPN name in TLS_CreateInstance()
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 6 Aug 2025 14:21:57 +0000 (16:21 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 7 Aug 2025 08:18:31 +0000 (10:18 +0200)
commitb365edb48edad9f783ef5a05836fbaa53c1063f8
tree437463c9bfe748fd8128f6e066100a004b930c3f
parent93a78c73ada369d2b35e3b1692c19c915938c8e8
tls: don't accept NULL ALPN name in TLS_CreateInstance()

The TLS_CreateInstance() function handles a NULL alpn_name, but the
other session functions would crash if it was NULL. Change the function
to not handle the NULL for consistency and avoid potential confusion.

Fixes: 3e32e7e69412 ("tls: move gnutls code into tls_gnutls.c")
tls_gnutls.c