summaryrefslogtreecommitdiffstats
path: root/modules/ssl/ssl_engine_config.c
diff options
context:
space:
mode:
authorCliff Woolley <jwoolley@apache.org>2002-03-18 04:18:47 +0100
committerCliff Woolley <jwoolley@apache.org>2002-03-18 04:18:47 +0100
commitbebc477f508a3e4ba3ecf4db907ec48a465d5957 (patch)
treeff45622e8b49da0fa63d9e2176b08181253f8953 /modules/ssl/ssl_engine_config.c
parentadded myself to contributor list (diff)
downloadapache2-bebc477f508a3e4ba3ecf4db907ec48a465d5957.tar.xz
apache2-bebc477f508a3e4ba3ecf4db907ec48a465d5957.zip
Fix some possibly-uninitialized warnings and some incorrect format strings
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93991 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/ssl/ssl_engine_config.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/ssl/ssl_engine_config.c b/modules/ssl/ssl_engine_config.c
index 9c068110ad..86ac10b8e2 100644
--- a/modules/ssl/ssl_engine_config.c
+++ b/modules/ssl/ssl_engine_config.c
@@ -591,7 +591,7 @@ static const char *ssl_cmd_check_aidx_max(cmd_parms *parms,
int idx)
{
SSLSrvConfigRec *sc = mySrvConfig(parms->server);
- const char *err, *desc, **files;
+ const char *err, *desc=NULL, **files=NULL;
int i;
if ((err = ssl_cmd_check_file(parms, &arg))) {
@@ -837,7 +837,6 @@ const char *ssl_cmd_SSLSessionCache(cmd_parms *cmd, void *ctx,
SSLModConfigRec *mc = myModConfig(cmd->server);
const char *err, *colon;
char *cp, *cp2;
- int maxsize;
int arglen = strlen(arg);
if ((err = ap_check_cmd_context(cmd, GLOBAL_ONLY))) {
@@ -857,7 +856,7 @@ const char *ssl_cmd_SSLSessionCache(cmd_parms *cmd, void *ctx,
mc->szSessionCacheDataFile = ap_server_root_relative(mc->pPool, arg+4);
if (!mc->szSessionCacheDataFile) {
return apr_psprintf(cmd->pool,
- "SSLSessionCache: Invalid cache file path ",
+ "SSLSessionCache: Invalid cache file path %s",
arg+4);
}
}
@@ -871,7 +870,7 @@ const char *ssl_cmd_SSLSessionCache(cmd_parms *cmd, void *ctx,
ap_server_root_relative(mc->pPool, colon+1);
if (!mc->szSessionCacheDataFile) {
return apr_psprintf(cmd->pool,
- "SSLSessionCache: Invalid cache file path ",
+ "SSLSessionCache: Invalid cache file path %s",
colon+1);
}
mc->tSessionCacheDataTable = NULL;
@@ -898,7 +897,7 @@ const char *ssl_cmd_SSLSessionCache(cmd_parms *cmd, void *ctx,
return apr_psprintf(cmd->pool,
"SSLSessionCache: Invalid argument: "
"size has to be < %d bytes on this "
- "platform", maxsize);
+ "platform", APR_SHM_MAXSIZE);
}
}
}
@@ -913,7 +912,7 @@ const char *ssl_cmd_SSLSessionCache(cmd_parms *cmd, void *ctx,
ap_server_root_relative(mc->pPool, colon+1);
if (!mc->szSessionCacheDataFile) {
return apr_psprintf(cmd->pool,
- "SSLSessionCache: Invalid cache file path ",
+ "SSLSessionCache: Invalid cache file path %s",
colon+1);
}
mc->tSessionCacheDataTable = NULL;
@@ -941,7 +940,7 @@ const char *ssl_cmd_SSLSessionCache(cmd_parms *cmd, void *ctx,
return apr_psprintf(cmd->pool,
"SSLSessionCache: Invalid argument: "
"size has to be < %d bytes on this "
- "platform", maxsize);
+ "platform", APR_SHM_MAXSIZE);
}
}