[njs] WebCrypto: fixed compilation with --debug=YES.

Dmitry Volyntsev xeioex at nginx.com
Wed Mar 1 04:37:08 UTC 2023


details:   https://hg.nginx.org/njs/rev/3e33a686a9fd
branches:  
changeset: 2057:3e33a686a9fd
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Mon Feb 27 23:55:55 2023 -0800
description:
WebCrypto: fixed compilation with --debug=YES.

The issue was introduced in 2e3bbe8743af (0.7.10).

diffstat:

 external/njs_webcrypto_module.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 293fe42c5e1c -r 3e33a686a9fd external/njs_webcrypto_module.c
--- a/external/njs_webcrypto_module.c	Mon Feb 27 22:14:36 2023 -0800
+++ b/external/njs_webcrypto_module.c	Mon Feb 27 23:55:55 2023 -0800
@@ -2076,7 +2076,7 @@ njs_export_jwk_oct(njs_vm_t *vm, njs_web
 
     static const njs_value_t  oct_str = njs_string("oct");
 
-    njs_assert(key->raw.start != NULL)
+    njs_assert(key->raw.start != NULL);
 
     ret = njs_string_base64url(vm, &k, &key->raw);
     if (njs_slow_path(ret != NJS_OK)) {


More information about the nginx-devel mailing list