]> granicus.if.org Git - apache/commitdiff
Fix warning about discarding 'const' qualifier from pointer
authorStefan Fritsch <sf@apache.org>
Sat, 29 Dec 2012 22:22:13 +0000 (22:22 +0000)
committerStefan Fritsch <sf@apache.org>
Sat, 29 Dec 2012 22:22:13 +0000 (22:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1426850 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_util_ssl.c

index 6cdbdc1b18cf8d9a9e92b872d0e7c7cdf0328131..0785a576a140a4cbd7383e9b39cc5b6e11ae8104 100644 (file)
@@ -360,7 +360,7 @@ BOOL SSL_X509_match_name(apr_pool_t *p, X509 *x509, const char *name,
      */
 
     if (SSL_X509_getIDs(p, x509, &ids)) {
-        char *cp;
+        const char *cp;
         int i;
         char **id = (char **)ids->elts;
         BOOL is_wildcard;
@@ -383,7 +383,7 @@ BOOL SSL_X509_match_name(apr_pool_t *p, X509 *x509, const char *name,
              * to match a dot. Otherwise, try a simple string compare.
              */
             if ((allow_wildcard == TRUE && is_wildcard == TRUE &&
-                 (cp = strchr(name, '.')) && !strcasecmp(id[i]+1, cp)) ||
+                 (cp = ap_strchr_c(name, '.')) && !strcasecmp(id[i]+1, cp)) ||
                 !strcasecmp(id[i], name)) {
                 matched = TRUE;
             }