diff options
author | Gerald Carter <jerry@samba.org> | 2003-10-03 21:43:56 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-10-03 21:43:56 +0000 |
commit | 9cfd26141cf9530f27e673bfae119d9879894dd4 (patch) | |
tree | a41a3ff126ac6bfcd824db4e147fadbb6a31a1f2 /source3/libads/ldap.c | |
parent | ec7716734ef8860ec8071ef7872672c4cb02a4e8 (diff) | |
download | samba-9cfd26141cf9530f27e673bfae119d9879894dd4.tar.gz samba-9cfd26141cf9530f27e673bfae119d9879894dd4.tar.bz2 samba-9cfd26141cf9530f27e673bfae119d9879894dd4.zip |
don't call ads_destroy() twice; fixes segfault in winbindd when DC goes down; bug 437
(This used to be commit 9da4d1f7dbb289dd1db5e57a4fd78004bbfbd26b)
Diffstat (limited to 'source3/libads/ldap.c')
-rw-r--r-- | source3/libads/ldap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 48401cc3d8..8c3185ea5e 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -1787,7 +1787,8 @@ ADS_STATUS ads_USN(ADS_STRUCT *ads, uint32 *usn) void *res; status = ads_do_search_retry(ads, "", LDAP_SCOPE_BASE, "(objectclass=*)", attrs, &res); - if (!ADS_ERR_OK(status)) return status; + if (!ADS_ERR_OK(status)) + return status; if (ads_count_replies(ads, res) != 1) { return ADS_ERROR(LDAP_NO_RESULTS_RETURNED); |