summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-03 00:39:44 +0100
committerGünther Deschner <gd@samba.org>2011-03-04 01:18:42 +0100
commitd36777735282b7d22c7d5e21f525c4f24fd774b1 (patch)
treec6c6820070558fc406175c96272f3bb045eaf784
parent199809b3cc51109aca9b8f2c4f21bd5bf69d36c5 (diff)
downloadsamba-d36777735282b7d22c7d5e21f525c4f24fd774b1.tar.gz
samba-d36777735282b7d22c7d5e21f525c4f24fd774b1.tar.bz2
samba-d36777735282b7d22c7d5e21f525c4f24fd774b1.zip
s3-nterr: within nt_errstr() compare codes using NT_STATUS_V().
This is to avoid future very special NT_STATUS_EQUAL semantics within s4. Guenther
-rw-r--r--source3/libsmb/nterr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c
index fdb6fe3c8b..866c025fbb 100644
--- a/source3/libsmb/nterr.c
+++ b/source3/libsmb/nterr.c
@@ -699,7 +699,8 @@ const char *nt_errstr(NTSTATUS nt_code)
}
while (nt_errs[idx].nt_errstr != NULL) {
- if (NT_STATUS_EQUAL(nt_errs[idx].nt_errcode, nt_code)) {
+ if (NT_STATUS_V(nt_errs[idx].nt_errcode) ==
+ NT_STATUS_V(nt_code)) {
return nt_errs[idx].nt_errstr;
}
idx++;