diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2012-10-14 09:07:02 +0000 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2012-10-14 09:07:02 +0000 |
commit | b5eb63360524b8a21c231de4f83b820ea63f596b (patch) | |
tree | a3111c9311e9d5c0c44bbef42a74786cd1d7f989 /modules/ldap | |
parent | 940259c95de16d02407d0cc6177937e0adba0323 (diff) | |
download | httpd-b5eb63360524b8a21c231de4f83b820ea63f596b.tar.gz |
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
Diffstat (limited to 'modules/ldap')
-rw-r--r-- | modules/ldap/util_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index ad2c395948..fae39bd3ff 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]); } |