Skip to content

Commit

Permalink
Fix a memory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlst committed Nov 19, 2019
1 parent 5cb2ec2 commit 1ee6982
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/http/rewriteengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ int RewriteEngine::loadRewriteFile(char *path, RewriteRuleList *pRuleList,
const RewriteMapList *pMaps,
HttpContext *pContext)
{
char pathBuf[4096] = {0};

/*
* If path not start with $ and /, will add $DOC_ROOT to it
* start with $ will be exapnded
*/
if (*path != '/' )
{
AutoStr2 sPath = "";
char pathBuf[4096] = {0};
if (*path != '$' )
sPath = "$DOC_ROOT/";
sPath.append(path, strlen(path));
Expand Down
2 changes: 1 addition & 1 deletion src/main/lshttpdmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
/***
* Do not change the below format, it will be set correctly while packing the code
*/
#define BUILDTIME " (built: Tue Nov 19 16:59:54 UTC 2019)"
#define BUILDTIME " (built: Tue Nov 19 20:14:18 UTC 2019)"

#define GlobalServerSessionHooks (LsiApiHooks::getServerSessionHooks())

Expand Down

0 comments on commit 1ee6982

Please sign in to comment.