]> git.ipfire.org Git - thirdparty/chrony.git/commit
nts: check TLS session in NKSN_GetKeys()
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 30 Sep 2024 13:27:18 +0000 (15:27 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 3 Oct 2024 13:02:16 +0000 (15:02 +0200)
commitf5cd79d2dfd1b28f356a27f34aff8fb972192ec8
treefeace3288a3269509aa26b2b9002c6c3509c8425
parent689605b6a2d2b26f44e8f086ae41521f06b83c31
nts: check TLS session in NKSN_GetKeys()

Make sure the TLS session is not NULL in NKSN_GetKeys() before trying to
export the keys in case some future code tried to call the function
outside of the NTS-KE message handler.
nts_ke_session.c
test/unit/nts_ke_session.c