this fixes the ads dump code
authorAndrew Tridgell <tridge@samba.org>
Thu, 11 Jul 2002 03:41:09 +0000 (03:41 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 11 Jul 2002 03:41:09 +0000 (03:41 +0000)
a char** isn't quite the same thing as a struct berval**  :)

source/libads/ldap.c

index 7e51c203ca413e4c0e4d599caea5772cf454fbd1..c9ad3e08db9c3ae94b85dd81a3f0c09bd5ec1e63 100644 (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;
 }