From 1e3147cf12913916cf29ccae1958e79a03a9e327 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 18 May 2006 22:34:16 +0000 Subject: r15704: Prefer LDAP error codes in ads_search_retry_sid(). Guenther (This used to be commit 6cfc65ea20793a72ff1666759bd4e8e446247071) --- source3/libads/ldap_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/libads/ldap_utils.c b/source3/libads/ldap_utils.c index fe0c659b04..c3074233e2 100644 --- a/source3/libads/ldap_utils.c +++ b/source3/libads/ldap_utils.c @@ -154,12 +154,12 @@ ADS_STATUS ads_search_retry_sid(ADS_STRUCT *ads, void **res, sid_string = sid_binstring_hex(sid); if (sid_string == NULL) { - return ADS_ERROR_NT(NT_STATUS_NO_MEMORY); + return ADS_ERROR(LDAP_NO_MEMORY); } if (!asprintf(&dn, "", sid_string)) { SAFE_FREE(sid_string); - return ADS_ERROR_NT(NT_STATUS_NO_MEMORY); + return ADS_ERROR(LDAP_NO_MEMORY); } status = ads_do_search_retry(ads, dn, LDAP_SCOPE_BASE, -- cgit