summaryrefslogtreecommitdiffstats
path: root/source/libsmb/nterr.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-11-23 05:50:05 +0000
committerTim Potter <tpot@samba.org>2001-11-23 05:50:05 +0000
commit80dca2c9e46753d87e673d712c96c76ffde0b276 (patch)
tree37eda1cf34fa1ef0e431038df373150ebb10578c /source/libsmb/nterr.c
parent6ce1eec09de64f19d969a67fc236abd4ae277926 (diff)
downloadsamba-80dca2c9e46753d87e673d712c96c76ffde0b276.tar.gz
samba-80dca2c9e46753d87e673d712c96c76ffde0b276.tar.xz
samba-80dca2c9e46753d87e673d712c96c76ffde0b276.zip
Finally worked out why a enumerate trusted domains was returning a
NT_STATUS_UNABLE_TO_FREE_VM error. This error code was mis-defined as 0x8000001a instead of 0xc000001a. The former is actually a NT_STATUS_NO_MORE_ENTRIES warning which is what we see in the status code. Removed the & 0xffffff from the loop in get_nt_error_msg() as all the error constants now have the correct high bits set.
Diffstat (limited to 'source/libsmb/nterr.c')
-rw-r--r--source/libsmb/nterr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/libsmb/nterr.c b/source/libsmb/nterr.c
index ab0a4256335..238908d6cdf 100644
--- a/source/libsmb/nterr.c
+++ b/source/libsmb/nterr.c
@@ -534,6 +534,7 @@ nt_err_code_struct nt_errs[] =
{ "NT_STATUS_TOO_MANY_LINKS", NT_STATUS_TOO_MANY_LINKS },
{ "NT_STATUS_QUOTA_LIST_INCONSISTENT", NT_STATUS_QUOTA_LIST_INCONSISTENT },
{ "NT_STATUS_FILE_IS_OFFLINE", NT_STATUS_FILE_IS_OFFLINE },
+ { "NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES },
{ NULL, NT_STATUS(0) }
};
@@ -548,8 +549,8 @@ char *get_nt_error_msg(NTSTATUS nt_code)
slprintf(msg, sizeof(msg), "NT code 0x%08x", NT_STATUS_V(nt_code));
while (nt_errs[idx].nt_errstr != NULL) {
- if ((NT_STATUS_V(nt_errs[idx].nt_errcode) & 0xFFFFFF) ==
- (NT_STATUS_V(nt_code) & 0xFFFFFF)) {
+ if (NT_STATUS_V(nt_errs[idx].nt_errcode) ==
+ NT_STATUS_V(nt_code)) {
return nt_errs[idx].nt_errstr;
}
idx++;