Lines 1-20
Link Here
|
1 |
--- src/util.c.orig Mon Nov 3 23:28:24 2003 |
|
|
2 |
+++ src/util.c Thu Oct 14 12:46:42 2004 |
3 |
@@ -1909,7 +1909,7 @@ |
4 |
char **gq_ldap_explode_dn(const char *dn, int dummy) |
5 |
{ |
6 |
int i, rc; |
7 |
- LDAPDN *parts; |
8 |
+ LDAPDN parts; |
9 |
char **v = 0; |
10 |
|
11 |
rc = ldap_str2dn(dn, &parts, LDAP_DN_FORMAT_LDAPV3); |
12 |
@@ -1921,7 +1921,7 @@ |
13 |
v = (char **) calloc((i + 2), sizeof(char*)); |
14 |
|
15 |
for( i = 0 ; parts[i] ; i++ ) { |
16 |
- ldap_rdn2str(parts[0][i], &v[i], |
17 |
+ ldap_rdn2str(parts[i], &v[i], |
18 |
LDAP_DN_FORMAT_LDAPV3 | LDAP_DN_PRETTY ); |
19 |
} |
20 |
return v; |