]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
return immediately if namemap is NULL
authorVladimír Kotal <vladimir.kotal@oracle.com>
Fri, 16 Jun 2023 14:25:58 +0000 (16:25 +0200)
committerPauli <pauli@openssl.org>
Sun, 18 Jun 2023 06:55:09 +0000 (16:55 +1000)
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21223)

crypto/core_namemap.c

index e2909d7197834478b6694e5a1383c4fae3f307af..25e0eb90ebb716f24542f3d7ee4fa1636c7affbd 100644 (file)
@@ -137,6 +137,9 @@ int ossl_namemap_doall_names(const OSSL_NAMEMAP *namemap, int number,
     cbdata.number = number;
     cbdata.found = 0;
 
+    if (namemap == NULL)
+        return 0;
+
     /*
      * We collect all the names first under a read lock. Subsequently we call
      * the user function, so that we're not holding the read lock when in user