From 1a9050a6fe419e14fc82674d34cc4685a7532059 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Wed, 19 Feb 2003 15:04:04 +0000 Subject: [PATCH] Fix segv in net ads join...an extra & was the culprit --- source/libads/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libads/ldap.c b/source/libads/ldap.c index b7cfc8d84c5..67669fc0783 100644 --- a/source/libads/ldap.c +++ b/source/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); -- 2.11.4.GIT