httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r593919 - /httpd/httpd/trunk/modules/ldap/util_ldap.c
Date Sun, 11 Nov 2007 16:14:24 GMT
Author: covener
Date: Sun Nov 11 08:14:24 2007
New Revision: 593919

URL: http://svn.apache.org/viewvc?rev=593919&view=rev
Log:
fix to http://svn.apache.org/viewvc?rev=591499&view=rev to properly copy into
char ***retvals when AuthLDAPUrl has extra attributes specified


Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=593919&r1=593918&r2=593919&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Sun Nov 11 08:14:24 2007
@@ -1207,7 +1207,7 @@
                     while (attrs[k++]);
                     *retvals = apr_pcalloc(r->pool, sizeof(char *) * k);
                     while (search_nodep->vals[i]) {
-                        *retvals[i] = apr_pstrdup(r->pool, search_nodep->vals[i]);
+                        (*retvals)[i] = apr_pstrdup(r->pool, search_nodep->vals[i]);
                         i++;
                     }
                 }
@@ -1455,7 +1455,7 @@
                     while (attrs[k++]);
                     *retvals = apr_pcalloc(r->pool, sizeof(char *) * k);
                     while (search_nodep->vals[i]) {
-                        *retvals[i] = apr_pstrdup(r->pool, search_nodep->vals[i]);
+                        (*retvals)[i] = apr_pstrdup(r->pool, search_nodep->vals[i]);
                         i++;
                     }
                 }



Mime
View raw message