source:
server/common/patches/httpd-2.2.x-broken-ldap-caching.patch
@
715
Last change on this file since 715 was 686, checked in by andersk, 16 years ago | |
---|---|
File size: 1.7 KB |
-
httpd-2.2.x/modules/ldap/util_ldap.c
925 925 /* ...and entry is valid */ 926 926 *binddn = apr_pstrdup(r->pool, search_nodep->dn); 927 927 if (attrs) { 928 int i = 0, k = 0; 929 while (attrs[k++]); 930 *retvals = apr_pcalloc(r->pool, sizeof(char *) * k); 931 while (search_nodep->vals[i]) { 928 int i; 929 *retvals = apr_pcalloc(r->pool, sizeof(char *) * search_nodep->numvals); 930 for (i = 0; i < search_nodep->numvals; i++) { 932 931 (*retvals)[i] = apr_pstrdup(r->pool, search_nodep->vals[i]); 933 i++;934 932 } 935 933 } 936 934 LDAP_CACHE_UNLOCK(); … … 1174 1172 /* ...and entry is valid */ 1175 1173 *binddn = apr_pstrdup(r->pool, search_nodep->dn); 1176 1174 if (attrs) { 1177 int i = 0, k = 0; 1178 while (attrs[k++]); 1179 *retvals = apr_pcalloc(r->pool, sizeof(char *) * k); 1180 while (search_nodep->vals[i]) { 1175 int i; 1176 *retvals = apr_pcalloc(r->pool, sizeof(char *) * search_nodep->numvals); 1177 for (i = 0; i < search_nodep->numvals; i++) { 1181 1178 (*retvals)[i] = apr_pstrdup(r->pool, search_nodep->vals[i]); 1182 i++;1183 1179 } 1184 1180 } 1185 1181 LDAP_CACHE_UNLOCK();
Note: See TracBrowser
for help on using the repository browser.