From 6223dea34e7a5af95321c02acd6a6022531bced1 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Tue, 24 May 2022 18:09:02 +0200 Subject: [PATCH] s3:libads: Pass the correct ADS_STRUCT pointer to ads_msgfree The search is performed using the ads_s pointer. Signed-off-by: Samuel Cabrero Reviewed-by: Jeremy Allison --- 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 4a533c9dc88..94dea180172 100755 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -3421,7 +3421,7 @@ ADS_STATUS ads_domain_func_level(ADS_STRUCT *ads, uint32_t *val) DEBUG(3,("ads_domain_func_level: %d\n", *val)); - ads_msgfree(ads, res); + ads_msgfree(ads_s, res); done: /* free any temporary ads connections */