Skip to content

Commit e9bf697

Browse files
author
Marc Stern
authored
Merge branch 'SpiderLabs:v2/master' into v2/master
2 parents 1cdc554 + 0dbdc2b commit e9bf697

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
DD mmm YYYY - 2.9.x (to be released)
22
-------------------
33

4+
* Check return code of apr_procattr_io_set()
5+
[Issue #2958 - @marcstern]
46
* Do not escape special chars in rx pattern with macro
57
[Issue #2357 - @marcstern, @martinhsv]
68
* Substitute two equals-equals operators in build

apache2/apache2_util.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ int apache2_exec(modsec_rec *msr, const char *command, const char **argv, char *
9999
return -1;
100100
}
101101

102-
apr_procattr_io_set(procattr, APR_NO_PIPE, APR_FULL_BLOCK, APR_NO_PIPE);
102+
rc = apr_procattr_io_set(procattr, APR_NO_PIPE, APR_FULL_BLOCK, APR_NO_PIPE);
103+
if (rc != APR_SUCCESS) {
104+
msr_log(msr, 1, "Exec: apr_procattr_io_set failed: %d (%s)", rc, get_apr_error(r->pool, rc));
105+
return -1;
106+
}
107+
103108
apr_procattr_cmdtype_set(procattr, APR_SHELLCMD);
104109

105110
if (msr->txcfg->debuglog_level >= 9) {

0 commit comments

Comments
 (0)