From 8fb570e6e0c748a9e7bf3d4207302e8dfb6ae779 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 11 Jul 2002 03:41:09 +0000 Subject: this fixes the ads dump code a char** isn't quite the same thing as a struct berval** :) (This used to be commit a92834ea9460bc49be99d6d5b0d41a817e6f0824) --- source3/libads/ldap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/libads') 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; } -- cgit