From: Daniel Gruno Date: Fri, 19 Apr 2013 14:28:25 +0000 (+0000) Subject: exists_config_define should return a boolean, not a number, or it will always evaluat... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96d9612ededfb40c927b012ec7da56b33d836269;p=thirdparty%2Fapache%2Fhttpd.git exists_config_define should return a boolean, not a number, or it will always evaluate to true. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1469844 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index f889c5e591a..aad4730ebc5 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -1499,7 +1499,7 @@ static int lua_ap_exists_config_define(lua_State *L) luaL_checktype(L, 1, LUA_TSTRING); name = lua_tostring(L, 1); returnValue = ap_exists_config_define(name); - lua_pushinteger(L, returnValue); + lua_pushboolean(L, returnValue); return 1; }