mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r15704: Prefer LDAP error codes in ads_search_retry_sid().
Guenther (This used to be commit 6cfc65ea20793a72ff1666759bd4e8e446247071)
This commit is contained in:
parent
ae4a2a2b9d
commit
1e3147cf12
@ -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=%s>", 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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user