summaryrefslogtreecommitdiffstats
path: root/modules/tls
diff options
context:
space:
mode:
authorMartin Kraemer <martin@apache.org>2001-04-27 17:16:41 +0200
committerMartin Kraemer <martin@apache.org>2001-04-27 17:16:41 +0200
commit7bb4bfdf69c3987f066a84b2d3de56b3305b9660 (patch)
tree0e900071e239f979b555024b8832949020b38814 /modules/tls
parentNot that it matters, but the compiler complains (suggest parentheses around ...) (diff)
downloadapache2-7bb4bfdf69c3987f066a84b2d3de56b3305b9660.tar.xz
apache2-7bb4bfdf69c3987f066a84b2d3de56b3305b9660.zip
Prevent a core dump (openssl_state_machine.c is completely infected with
assert()s in place of sensible error handling) when a server-root-relative certificate path is given (which is what most users are going to try first). assertion "n > 0" failed: file "openssl_state_machine.c", line 142 That does NOT fix the openssl_state_machine.c though., So, never try to use invalid certs, missing keys or other fancy "1st time user" stuff. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88950 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/tls')
-rw-r--r--modules/tls/mod_tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tls/mod_tls.c b/modules/tls/mod_tls.c
index 2e9f475050..aa764833df 100644
--- a/modules/tls/mod_tls.c
+++ b/modules/tls/mod_tls.c
@@ -109,7 +109,7 @@ static const char *tls_cert_file(cmd_parms *cmd, void *dummy, const char *arg)
{
TLSServerConfig *pConfig = ap_get_module_config(cmd->server->module_config,
&tls_module);
- pConfig->szCertificateFile = arg;
+ pConfig->szCertificateFile = ap_server_root_relative(cmd->pool, arg);
/* temp */
pConfig->szKeyFile=pConfig->szCertificateFile;