diff options
Diffstat (limited to 'external')
-rw-r--r-- | external/njs_webcrypto_module.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |