]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove extra trailing semicolon
authorRich Salz <rsalz@akamai.com>
Fri, 16 Apr 2021 21:57:30 +0000 (17:57 -0400)
committerPauli <pauli@openssl.org>
Mon, 19 Apr 2021 21:09:58 +0000 (07:09 +1000)
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14903)

providers/common/provider_seeding.c

index 73a2a1418742d7cefa1e6da51291f30db3b6e3b0..51e9badc825d8a88f8a19ca82582e699d0a73e3c 100644 (file)
@@ -23,7 +23,8 @@ int ossl_prov_seeding_from_dispatch(const OSSL_DISPATCH *fns)
          * multiple versions of libcrypto (e.g. one static and one dynamic), but
          * sharing a single fips.so. We do a simple sanity check here.
          */
-#define set_func(c, f) if (c == NULL) c = f; else if (c != f) return 0;
+#define set_func(c, f) \
+    do { if (c == NULL) c = f; else if (c != f) return 0; } while (0)
         switch (fns->function_id) {
         case OSSL_FUNC_GET_ENTROPY:
             set_func(c_get_entropy, OSSL_FUNC_get_entropy(fns));
@@ -38,6 +39,7 @@ int ossl_prov_seeding_from_dispatch(const OSSL_DISPATCH *fns)
             set_func(c_cleanup_nonce, OSSL_FUNC_cleanup_nonce(fns));
             break;
         }
+#undef set_func
     }
     return 1;
 }