From: Dmitry Volyntsev Date: Mon, 19 May 2025 21:58:12 +0000 (-0700) Subject: WebCrypto: fixed issue introduced in 637fc26e. X-Git-Tag: 0.9.1~42 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=95ea07b6553227638c9727f52dae99e94b08962a;p=njs.git WebCrypto: fixed issue introduced in 637fc26e. Found by Clang static analyzer. --- diff --git a/external/njs_webcrypto_module.c b/external/njs_webcrypto_module.c index 8d7f78e7..b9a74353 100644 --- a/external/njs_webcrypto_module.c +++ b/external/njs_webcrypto_module.c @@ -4852,7 +4852,8 @@ njs_algorithm_hash(njs_vm_t *vm, njs_value_t *options, if (njs_value_is_object(options)) { val = njs_vm_object_prop(vm, options, &string_hash, &value); if (val == NULL) { - return NJS_HASH_SHA256; + *hash = NJS_HASH_SHA256; + return NJS_OK; } } else {