You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2012/10/14 11:07:02 UTC

svn commit: r1398040 - /httpd/httpd/trunk/modules/ldap/util_ldap.c

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]);
                     }