summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-07 16:01:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:01 -0500
commitdbb4840da528ed6931ffa1c70885b3645dff25a3 (patch)
tree240dbb6380318bc49c7cc2c64cf4831352c7567d /source3/libads
parenta0b0ac5b6a9f5ecdf588f89a6c1d1239d159c263 (diff)
downloadsamba-dbb4840da528ed6931ffa1c70885b3645dff25a3.tar.gz
samba-dbb4840da528ed6931ffa1c70885b3645dff25a3.tar.bz2
samba-dbb4840da528ed6931ffa1c70885b3645dff25a3.zip
r13950: Fix Coverity bug #168
(This used to be commit cbf894c0e37964df57bd6a91ac10dfff571b1b3c)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ads_ldap.c1
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;
}