summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++;