]> granicus.if.org Git - apache/commitdiff
Don't apr_pstrdup in ap_auth_type(). It returns const char *, anyway.
authorStefan Fritsch <sf@apache.org>
Sun, 20 Jun 2010 20:18:55 +0000 (20:18 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 20 Jun 2010 20:18:55 +0000 (20:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@956405 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authn_core.c

index 0a3658240b88ec9747704e65dfd9faad2f331c66..4c6df1074f72bdf1bd9a490591170c70b5c1d473 100644 (file)
@@ -315,7 +315,7 @@ static const char *authn_ap_auth_type(request_rec *r)
     conf = (authn_core_dir_conf *)ap_get_module_config(r->per_dir_config,
         &authn_core_module);
 
-    return apr_pstrdup(r->pool, conf->ap_auth_type);
+    return conf->ap_auth_type;
 }
 
 static const char *authn_ap_auth_name(request_rec *r)