]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Ensure that get_sigtype always return non-NULL
authorArne Schwabe <arne@rfc2549.org>
Thu, 30 Oct 2025 19:29:57 +0000 (20:29 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 30 Oct 2025 21:04:12 +0000 (22:04 +0100)
commit9fa32e66c9ec66ca05704f8e8b2fd9db7c711c50
tree50ef05c457901183ed3ee784b8af01ba220a22dc
parentd7f86ddaf403aafa4a6098d02d76910a821b038e
Ensure that get_sigtype always return non-NULL

There is a theoretical possibility that OpenSSL returns an NID that
OBJ_nid2sn cannot resolve and thus the function return NULL.

This is however extremely unlikely. But we still cover this case now
to make linters/code checker happy and avoid similar false positives
in the future.

Reported-by: Joshua Rogers <contact@joshua.hu>
Found-by: ZeroPath (https://zeropath.com/)
Change-Id: I70e221ff5d9752fec17bad18fd41dcf188ae8fbc
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1325
Message-Id: <20251030193003.348-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34060.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_openssl.c