]> git.kaiwu.me - nginx.git/commit
Perl: fixed optimization in SSI command handler.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 1 Nov 2016 17:39:21 +0000 (20:39 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 1 Nov 2016 17:39:21 +0000 (20:39 +0300)
commit0438b6049855c4f20e4c13c719badacd19308a5c
tree07fe4345f3658a01d444efe0f4a52047cbd99636
parent5a273f2e9042b74467ba217800b9c7b2fe3b4a31
Perl: fixed optimization in SSI command handler.

As the pointer to the first argument was tested instead of the argument
itself, array of arguments was always created, even if there were no
arguments.  Fix is to test args[0] instead of args.

Found by Coverity (CID 1356862).
src/http/modules/perl/ngx_http_perl_module.c