summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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 866c025fbb..1ba2691a05 100644
--- a/source3/libsmb/nterr.c
+++ b/source3/libsmb/nterr.c
@@ -20,6 +20,7 @@
/* NT error codes. please read nterr.h */
#include "includes.h"
+#undef strcasecmp
#if !defined(N_)
#define N_(string) string
@@ -764,7 +765,7 @@ NTSTATUS nt_status_string_to_code(const char *nt_status_str)
int idx = 0;
while (nt_errs[idx].nt_errstr != NULL) {
- if (strcmp(nt_errs[idx].nt_errstr, nt_status_str) == 0) {
+ if (strcasecmp(nt_errs[idx].nt_errstr, nt_status_str) == 0) {
return nt_errs[idx].nt_errcode;
}
idx++;