[njs] Fixed typo introduced in 81040de6b085.
Dmitry Volyntsev
xeioex at nginx.com
Tue Jan 26 12:52:57 UTC 2021
details: https://hg.nginx.org/njs/rev/d64c77837095
branches:
changeset: 1594:d64c77837095
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Tue Jan 26 12:52:12 2021 +0000
description:
Fixed typo introduced in 81040de6b085.
Found by Coverity (CID 1472504, CID 1472505).
diffstat:
nginx/ngx_js_fetch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 81040de6b085 -r d64c77837095 nginx/ngx_js_fetch.c
--- a/nginx/ngx_js_fetch.c Thu Jan 21 18:44:58 2021 +0000
+++ b/nginx/ngx_js_fetch.c Tue Jan 26 12:52:12 2021 +0000
@@ -467,7 +467,7 @@ ngx_js_ext_fetch(njs_vm_t *vm, njs_value
start++;
value = njs_vm_object_prop(vm, headers, &name, &lvalue);
- if (ret != NJS_OK) {
+ if (value == NULL) {
goto fail;
}
More information about the nginx-devel
mailing list