summaryrefslogtreecommitdiffstats
path: root/source3/libads
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-11 03:41:09 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-11 03:41:09 +0000
commit8fb570e6e0c748a9e7bf3d4207302e8dfb6ae779 (patch)
tree53baf6e86710ad4d8bdf4e4218b1eed9176dd449 /source3/libads
parent0aadcff8ec1caa7e8a8cc9c5738bc8d57be7b24f (diff)
downloadsamba-8fb570e6e0c748a9e7bf3d4207302e8dfb6ae779.tar.gz
samba-8fb570e6e0c748a9e7bf3d4207302e8dfb6ae779.tar.xz
samba-8fb570e6e0c748a9e7bf3d4207302e8dfb6ae779.zip
this fixes the ads dump code
a char** isn't quite the same thing as a struct berval** :) (This used to be commit a92834ea9460bc49be99d6d5b0d41a817e6f0824)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 7e51c203ca4..c9ad3e08db9 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -903,11 +903,11 @@ static void dump_sd(const char *filed, struct berval **values)
/*
dump a string result from ldap
*/
-static void dump_string(const char *field, struct berval **values)
+static void dump_string(const char *field, char **values)
{
int i;
for (i=0; values[i]; i++) {
- printf("%s: %s\n", field, values[i]->bv_val);
+ printf("%s: %s\n", field, values[i]);
}
}
@@ -946,7 +946,7 @@ static BOOL ads_dump_field(char *field, void **values, void *data_area)
if (!handlers[i].name) {
if (!values) /* first time, indicate string conversion */
return True;
- dump_string(field, (struct berval **) values);
+ dump_string(field, (char **)values);
}
return False;
}