Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit119440a

Browse files
committed
Minor revision: remove the unused code
1 parent0bfb804 commit119440a

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

‎apache2/Makefile.am‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ mod_security2_la_CFLAGS = @APR_CFLAGS@ \
4545
@MODSEC_EXTRA_CFLAGS@\
4646
@PCRE_CFLAGS@\
4747
@YAJL_CFLAGS@\
48-
@SSDEEP_CFLAGS@
48+
@SSDEEP_CFLAGS@
49+
4950

5051
mod_security2_la_CPPFLAGS = @APR_CPPFLAGS@\
5152
@CURL_CPPFLAGS@\

‎apache2/apache2_config.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121
#include"apr_lib.h"
2222
#include"acmp.h"
2323
#include"msc_crypt.h"
24+
#ifdefMEMORY_DATABASE_ENABLE
2425
#include"persist_dbm.h"
26+
#endif
2527

2628
#if defined(WITH_LUA)
2729
#include"msc_lua.h"
2830
#endif
2931

30-
#defineMAX_LEN_OF_REDIS_IP_ADDR 15
3132

3233
/* -- Directory context creation and initialisation -- */
3334

@@ -1143,6 +1144,8 @@ static const char *update_rule_action(cmd_parms *cmd, directory_config *dcfg,
11431144
returnNULL;
11441145
}
11451146

1147+
/* -- Configuration directives -- */
1148+
11461149
#ifdefMEMORY_DATABASE_ENABLE
11471150
staticconstchar*cmd_db_option(cmd_parms*cmd,void*_dcfg,constchar*p1){
11481151
directory_config*dcfg= (directory_config*)_dcfg;
@@ -1157,6 +1160,7 @@ static const char *cmd_db_option(cmd_parms *cmd, void *_dcfg, const char *p1){
11571160
returnNULL;
11581161
}
11591162
#endif
1163+
11601164
staticconstchar*cmd_action(cmd_parms*cmd,void*_dcfg,constchar*p1)
11611165
{
11621166
returnadd_rule(cmd, (directory_config*)_dcfg,RULE_TYPE_ACTION,SECACTION_TARGETS,SECACTION_ARGS,p1);

‎apache2/modsecurity.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ struct directory_config {
645645

646646
/* This will be used whenever ModSecurity will be ready
647647
* to ask the server for newer rules.
648-
*/
648+
*/
649649
#if0
650650
msc_remote_rules_server*remote_rules;
651651
intremote_timeout;

‎apache2/persist_dbm.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ static apr_table_t *collection_unpack(modsec_rec *msr, const unsigned char *blob
4747
unsignedintblob_offset;
4848

4949
col=apr_table_make(msr->mp,32);
50-
if (col==NULL) {
51-
returnNULL;
52-
}
50+
if (col==NULL)returnNULL;
5351

5452
/* ENH verify the first 3 bytes (header) */
5553

‎apache2/re_actions.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,9 +1981,7 @@ static apr_status_t init_collection(modsec_rec *msr, const char *real_col_name,
19811981
}
19821982

19831983
table=apr_table_make(msr->mp,24);
1984-
if (table==NULL) {
1985-
return-1;
1986-
}
1984+
if (table==NULL)return-1;
19871985

19881986
/* IMP1 Is the timeout hard-coded to 3600? */
19891987

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp