httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1398040 - /httpd/httpd/trunk/modules/ldap/util_ldap.c
Date Sun, 14 Oct 2012 09:07:02 GMT
Author: jailletc36
Date: Sun Oct 14 09:07:02 2012
New Revision: 1398040

URL: http://svn.apache.org/viewvc?rev=1398040&view=rev
Log:
No need it apr_pcalloc here, the memory is fully initialized the line just after

Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=1398040&r1=1398039&r2=1398040&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Sun Oct 14 09:07:02 2012
@@ -1647,7 +1647,7 @@ static int uldap_cache_checkuserid(reque
                 *binddn = apr_pstrdup(r->pool, search_nodep->dn);
                 if (attrs) {
                     int i;
-                    *retvals = apr_pcalloc(r->pool, sizeof(char *) * search_nodep->numvals);
+                    *retvals = apr_palloc(r->pool, sizeof(char *) * search_nodep->numvals);
                     for (i = 0; i < search_nodep->numvals; i++) {
                         (*retvals)[i] = apr_pstrdup(r->pool, search_nodep->vals[i]);
                     }



Mime
View raw message