From b2c18f480d1d69192991cc334298ec1f7e1039b7 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sun, 10 Feb 2019 18:18:31 -0500 Subject: [PATCH] [mod_auth] minor: adjust config validation x-ref: "PVS-Studio Analysis Results" https://redmine.lighttpd.net/boards/3/topics/8459 http://www.fly-server.ru/pvs-studio/lighttpd/ --- src/mod_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_auth.c b/src/mod_auth.c index 977b5c2d..a0f3d816 100644 --- a/src/mod_auth.c +++ b/src/mod_auth.c @@ -138,7 +138,7 @@ static int mod_auth_require_parse (server *srv, http_auth_require_t * const requ "error value:", b, "error near:", str); return 0; } - if (p-1 == eq) { + if (eq[1] == '|' || eq[1] == '\0') { log_error_write(srv, __FILE__, __LINE__, "sssbss", "error parsing auth.require 'require' field: missing token after '='", "(expecting \"valid-user\" or \"user=a|user=b|group=g|host=h\").",