From ef87f970b324d20cdd1b754a3096cf47b78a490f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Thu, 3 Mar 2011 01:11:43 +0100 Subject: [PATCH] s3-nterr: use strcasecmp in nt_status_string_to_code(). Guenther --- source3/libsmb/nterr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c index 866c025fbba..1ba2691a054 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++;