openresty / echo-nginx-module

An Nginx module for bringing the power of "echo", "sleep", "time" and more to Nginx's config file
http://wiki.nginx.org/NginxHttpEchoModule
BSD 2-Clause "Simplified" License
1.17k stars 254 forks source link

fix potential null pointer dereference found by Coverity #108

Closed chipitsine closed 2 years ago

chipitsine commented 2 years ago
245            dd("found opcode echo location async...");
   CID 258040 (#8 of 8): Explicit null dereferenced (FORWARD_NULL)9. var_deref_model: Passing null pointer computed_args to ngx_http_echo_exec_echo_location_async, which dereferences it. [show details]
246            rc = ngx_http_echo_exec_echo_location_async(r, ctx,
247                                                        computed_args);
248            break;