mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
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
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user