1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

this fixes the ads dump code

a char** isn't quite the same thing as a struct berval**  :)
(This used to be commit a92834ea94)
This commit is contained in:
Andrew Tridgell 2002-07-11 03:41:09 +00:00
parent 0aadcff8ec
commit 8fb570e6e0

View File

@ -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;
}