s3:libads: fix compiler warning in ads_mod_ber()
authorStefan Metzmacher <metze@samba.org>
Mon, 26 Feb 2024 20:02:08 +0000 (21:02 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 May 2024 10:12:17 +0000 (12:12 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libads/ldap.c

index bb219baec804dc4d383e1c6c48ddae60fb46b57c..593881c8d4f3e0510066087dd3b1ad12b05b9f6f 100644 (file)
@@ -1978,7 +1978,7 @@ static ADS_STATUS ads_mod_ber(TALLOC_CTX *ctx, ADS_MODLIST *mods,
        if (!val)
                return ads_modlist_add(ctx, mods, LDAP_MOD_DELETE, name, NULL);
        return ads_modlist_add(ctx, mods, LDAP_MOD_REPLACE|LDAP_MOD_BVALUES,
-                              name, (const void **) values);
+                              name, (const void *) values);
 }
 
 static void ads_print_error(int ret, LDAP *ld)