]> granicus.if.org Git - apache/commitdiff
No need it apr_pcalloc here, the memory is fully initialized the line just after
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 14 Oct 2012 09:07:02 +0000 (09:07 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 14 Oct 2012 09:07:02 +0000 (09:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1398040 13f79535-47bb-0310-9956-ffa450edef68

modules/ldap/util_ldap.c

index ad2c395948807ab833c1a5c88f7a224c98214716..fae39bd3ffee69134581e696400409d7f6c0bbae 100644 (file)
@@ -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]);
                     }