mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Eliminate potential ap_server_root_relative segfaults, with the input
of Jeff Trawick's style changes to the first patches. Doesn't include the fixes to ssl [more complex], and we won't trap errors that involve ap_serverroot, since we presume that was normalized on the way in. Therefore, testing ap_server_root_relative(DEFAULT_FOO) cases should never become necessary. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93965 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -165,6 +165,12 @@ static const char *set_scriptlog(cmd_parms *cmd, void *dummy, const char *arg)
|
||||
&cgi_module);
|
||||
|
||||
conf->logname = ap_server_root_relative(cmd->pool, arg);
|
||||
|
||||
if (!conf->logname) {
|
||||
return apr_pstrcat(cmd->pool, "Invalid ScriptLog path ",
|
||||
arg, NULL);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user