[njs] Fixed OpenSSL detection support when Address Sanitizer is enabled.

Dmitry Volyntsev xeioex at nginx.com
Wed Dec 22 16:55:05 UTC 2021


details:   https://hg.nginx.org/njs/rev/31db917a742c
branches:  
changeset: 1773:31db917a742c
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Dec 22 16:54:05 2021 +0000
description:
Fixed OpenSSL detection support when Address Sanitizer is enabled.

diffstat:

 auto/openssl |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 4d4657128baf -r 31db917a742c auto/openssl
--- a/auto/openssl	Tue Dec 21 17:42:26 2021 +0000
+++ b/auto/openssl	Wed Dec 22 16:54:05 2021 +0000
@@ -18,7 +18,9 @@ njs_feature_libs="-lcrypto"
 njs_feature_test="#include <openssl/evp.h>
 
                   int main() {
-                      EVP_CIPHER_CTX_new();
+                      EVP_CIPHER_CTX  *ctx;
+                      ctx = EVP_CIPHER_CTX_new();
+                      EVP_CIPHER_CTX_free(ctx);
                       return 0;
                  }"
 . auto/feature


More information about the nginx-devel mailing list