diff options
-rw-r--r-- | source3/libads/ads_ldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libads/ads_ldap.c b/source3/libads/ads_ldap.c index fea4cd0fd0..841bee6a1e 100644 --- a/source3/libads/ads_ldap.c +++ b/source3/libads/ads_ldap.c @@ -84,6 +84,7 @@ ADS_STATUS ads_sid_to_dn(ADS_STRUCT *ads, if (!*dn) { ads_memfree(ads, dn2); + dn2 = NULL; rc = ADS_ERROR_NT(NT_STATUS_NO_MEMORY); goto done; } |