From 4560329abbdbdc9dea75f32422ba9b08bcfee726 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Wed, 19 Feb 2003 15:04:04 +0000 Subject: Fix segv in net ads join...an extra & was the culprit (This used to be commit 1a9050a6fe419e14fc82674d34cc4685a7532059) --- source3/libads/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index b7cfc8d84c5..67669fc0783 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -1506,7 +1506,7 @@ ADS_STATUS ads_set_machine_sd(ADS_STRUCT *ads, const char *hostname, char *dn) ret = ADS_ERROR(LDAP_NO_MEMORY); goto ads_set_sd_error; } - prs_copy_all_data_out((char *)&bval.bv_val, &ps_wire); + prs_copy_all_data_out(bval.bv_val, &ps_wire); ads_mod_ber(ctx, &mods, attrs[0], &bval); ret = ads_gen_mod(ads, dn, mods); -- cgit