diff options
author | Günther Deschner <gd@samba.org> | 2008-06-17 16:17:03 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-06-17 19:51:14 +0200 |
commit | 132b038581a1a91b4e70c7c44f97f52866609812 (patch) | |
tree | 187141fdaad6d16322234326eeeb8551716f74e0 /source/libads | |
parent | 675bb53398ba29c53d2dcf3c7122cf4770c2f938 (diff) | |
download | samba-132b038581a1a91b4e70c7c44f97f52866609812.tar.gz |
libads: fix logic error in ads_get_kvno().
Guenther
Diffstat (limited to 'source/libads')
-rw-r--r-- | source/libads/ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c index 37c0c4d0ac4..01c4b442c8c 100644 --- a/source/libads/ldap.c +++ b/source/libads/ldap.c @@ -1537,7 +1537,7 @@ uint32 ads_get_kvno(ADS_STRUCT *ads, const char *machine_name) } ret = ads_search(ads, &res, filter, attrs); SAFE_FREE(filter); - if (!ADS_ERR_OK(ret) && ads_count_replies(ads, res)) { + if (!ADS_ERR_OK(ret) || (ads_count_replies(ads, res) != 1)) { DEBUG(1,("ads_get_kvno: Computer Account For %s not found.\n", machine_name)); ads_msgfree(ads, res); return kvno; |