Changes with Apache 2.4.3
+ *) core: Fix segfault in logging if r->useragent_addr or c->client_addr is
+ unset. [Stefan Fritsch]
+
*) log_server_status: Bring Perl style forward to the present, use
standard modules, update for new format of server-status output.
PR 45424. [Richard Bowen, Dave Brondsema, and others]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * core: Fix segfault in logging if r->useragent_addr or c->client_addr is
- unset. (This can only happen with buggy modules but it happened to me
- while playing with mod_perl).
- trunk patch: http://svn.apache.org/viewvc?rev=1328950&view=rev
- 2.4 patch: Trunk patch works
- +1: sf, jorton, trawick
-
* mod_ssl: Send speaking-http-on-https-port error response with http 1.0,
not 0.9. Remove potentially wrong link. PR 50823
trunk patches: http://svn.apache.org/viewvc?rev=1328325&view=rev
{
if (info->r && !(arg && *arg == 'c'))
return apr_snprintf(buf, buflen, "%s:%d", info->r->useragent_ip,
- info->r->useragent_addr->port);
+ info->r->useragent_addr ? info->r->useragent_addr->port : 0);
else if (info->c)
return apr_snprintf(buf, buflen, "%s:%d", info->c->client_ip,
- info->c->client_addr->port);
+ info->c->client_addr ? info->c->client_addr->port : 0);
else
return 0;
}
if (info->r) {
len += apr_snprintf(buf + len, buflen - len,
info->r->connection->sbh ? "[client %s:%d] " : "[remote %s:%d] ",
- info->r->useragent_ip, info->r->useragent_addr->port);
+ info->r->useragent_ip,
+ info->r->useragent_addr ? info->r->useragent_addr->port : 0);
}
else if (info->c) {
len += apr_snprintf(buf + len, buflen - len,
info->c->sbh ? "[client %s:%d] " : "[remote %s:%d] ",
- info->c->client_ip, info->c->client_addr->port);
+ info->c->client_ip,
+ info->c->client_addr ? info->c->client_addr->port : 0);
}
/* the actual error message */