summaryrefslogtreecommitdiff
path: root/source3/libsmb/nterr.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-10 09:49:55 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-10 09:49:55 +0000
commitddc9b8b40642c90fe7c34b088eae4f8075f4033a (patch)
tree56c378815bdf109d13b1d4e5b51f0e1ea313a58d /source3/libsmb/nterr.c
parent6cf96ff43155346589e19c1bb2fd723be74f1f12 (diff)
downloadsamba-ddc9b8b40642c90fe7c34b088eae4f8075f4033a.tar.gz
samba-ddc9b8b40642c90fe7c34b088eae4f8075f4033a.tar.bz2
samba-ddc9b8b40642c90fe7c34b088eae4f8075f4033a.zip
more merging
it is now at the stage that winbindd can compile in the head branch, but not link (This used to be commit d178c00aae77710ae6ff20a7f54a30e3bd8232bb)
Diffstat (limited to 'source3/libsmb/nterr.c')
-rw-r--r--source3/libsmb/nterr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c
index ef3fb4b8ba..3f19a66941 100644
--- a/source3/libsmb/nterr.c
+++ b/source3/libsmb/nterr.c
@@ -526,11 +526,9 @@ char *get_nt_error_msg(uint32 nt_code)
pstrcpy(msg, "Unknown NT error");
- nt_code &= 0xFFFF;
-
while (nt_errs[idx].nt_errstr != NULL)
{
- if (nt_errs[idx].nt_errcode == nt_code)
+ if ((nt_errs[idx].nt_errcode & 0xFFFFFF) == (nt_code & 0xFFFFFF))
{
pstrcpy(msg, nt_errs[idx].nt_errstr);
return msg;