From: Christophe Jaillet Date: Sun, 14 Oct 2012 09:07:02 +0000 (+0000) Subject: No need it apr_pcalloc here, the memory is fully initialized the line just after X-Git-Tag: 2.5.0-alpha~6199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5eb63360524b8a21c231de4f83b820ea63f596b;p=thirdparty%2Fapache%2Fhttpd.git No need it apr_pcalloc here, the memory is fully initialized the line just after git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1398040 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index ad2c3959488..fae39bd3ffe 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -1647,7 +1647,7 @@ static int uldap_cache_checkuserid(request_rec *r, util_ldap_connection_t *ldc, *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]); }