mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-17 22:56:18 +03:00
Fix windows error compilation
This commit is contained in:
parent
88331d1221
commit
ab4d5acce6
@ -18,6 +18,7 @@
|
|||||||
#include "acmp.h"
|
#include "acmp.h"
|
||||||
#include "libxml/HTMLtree.h"
|
#include "libxml/HTMLtree.h"
|
||||||
#include "libxml/uri.h"
|
#include "libxml/uri.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Normalize path in URI
|
* \brief Normalize path in URI
|
||||||
|
@ -75,8 +75,8 @@ struct TreeRoot {
|
|||||||
CPTTree *ipv6_tree;
|
CPTTree *ipv6_tree;
|
||||||
};
|
};
|
||||||
|
|
||||||
DSOLOCAL CPTTree *CPTCreateRadixTree(apr_pool_t *pool);
|
CPTTree DSOLOCAL *CPTCreateRadixTree(apr_pool_t *pool);
|
||||||
DSOLOCAL TreeNode *CPTIpMatch(modsec_rec *, uint8_t *, CPTTree *, int);
|
TreeNode DSOLOCAL *CPTIpMatch(modsec_rec *, uint8_t *, CPTTree *, int);
|
||||||
DSOLOCAL TreeNode *TreeAddIP(const char *, CPTTree *, int);
|
TreeNode DSOLOCAL *TreeAddIP(const char *, CPTTree *, int);
|
||||||
|
|
||||||
#endif /*__MSC_TREE_H__ */
|
#endif /*__MSC_TREE_H__ */
|
||||||
|
@ -586,7 +586,7 @@ int collections_remove_stale(modsec_rec *msr, const char *col_name) {
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strcasestr(col_name,"user") || strcasestr(col_name,"session") || strcasestr(col_name,"resource"))
|
if(strstr(col_name,"USER") || strstr(col_name,"SESSION") || strstr(col_name, "RESOURCE"))
|
||||||
dbm_filename = apr_pstrcat(msr->mp, msr->txcfg->data_dir, "/", msr->txcfg->webappid, "_", col_name, NULL);
|
dbm_filename = apr_pstrcat(msr->mp, msr->txcfg->data_dir, "/", msr->txcfg->webappid, "_", col_name, NULL);
|
||||||
else
|
else
|
||||||
dbm_filename = apr_pstrcat(msr->mp, msr->txcfg->data_dir, "/", col_name, NULL);
|
dbm_filename = apr_pstrcat(msr->mp, msr->txcfg->data_dir, "/", col_name, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user