diff options
Diffstat (limited to 'source3/libads/ads_status.c')
-rw-r--r-- | source3/libads/ads_status.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c index 07c60c5ac0..111a52e072 100644 --- a/source3/libads/ads_status.c +++ b/source3/libads/ads_status.c @@ -76,10 +76,7 @@ NTSTATUS ads_ntstatus(ADS_STATUS status) return map_nt_error_from_unix(status.err.rc); #ifdef HAVE_LDAP case ENUM_ADS_ERROR_LDAP: - if (status.err.rc == LDAP_NO_MEMORY) { - return NT_STATUS_NO_MEMORY; - } - break; + return NT_STATUS_LDAP(status.err.rc); #endif #ifdef HAVE_KRB5 case ENUM_ADS_ERROR_KRB5: |