From 29a2ecefeb93a59799aecc00d6be9f0c6c596e7b Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Mon, 3 Aug 2026 17:45:13 +0200 Subject: [PATCH] build: handle malformed OpenSSL macros A missing OPENSSL_VERSION_NUMBER macro raises TypeError while the configure logic attempts to slice None. Treat that like the other version detection failures so configure warns and records version 0. Signed-off-by: Filip Skokan PR-URL: https://github.com/nodejs/node/pull/64982 Reviewed-By: Richard Lau Reviewed-By: Aviv Keller --- configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 20bf5b7d101..6ddc73c301e 100755 --- a/configure.py +++ b/configure.py @@ -1517,7 +1517,7 @@ def get_openssl_version(o): return version_number - except (OSError, ValueError, subprocess.SubprocessError) as e: + except (OSError, TypeError, ValueError, subprocess.SubprocessError) as e: warn(f'Failed to determine OpenSSL version from header: {e}') return 0