Commit e6773f3b authored by Jim Jagielski's avatar Jim Jagielski
Browse files

2 silly bugs. First of all, make the code match the error log

(and allow 8192 to be valid). Secondly, this missplaced else
made the size part (8192) non-optional for shm:
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@97281 13f79535-47bb-0310-9956-ffa450edef68
parent 2a8f4344
Loading
Loading
Loading
Loading
+3 −3
Changes for ssl_engine_config.c: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -968,7 +968,7 @@ const char *ssl_cmd_SSLSessionCache(cmd_parms *cmd,

            mc->nSessionCacheDataSize = atoi(cp);

            if (mc->nSessionCacheDataSize <= 8192) {
            if (mc->nSessionCacheDataSize < 8192) {
                return "SSLSessionCache: Invalid argument: "
                       "size has to be >= 8192 bytes";
            }
@@ -1010,7 +1010,7 @@ const char *ssl_cmd_SSLSessionCache(cmd_parms *cmd,

            mc->nSessionCacheDataSize = atoi(cp);

            if (mc->nSessionCacheDataSize <= 8192) {
            if (mc->nSessionCacheDataSize < 8192) {
                return "SSLSessionCache: Invalid argument: "
                       "size has to be >= 8192 bytes";

@@ -1024,10 +1024,10 @@ const char *ssl_cmd_SSLSessionCache(cmd_parms *cmd,

            }
        }
    }
    else {
        return "SSLSessionCache: Invalid argument";
    }
    }

    return NULL;
}