1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3-nterr: use strcasecmp in nt_status_string_to_code().

Guenther
This commit is contained in:
Günther Deschner 2011-03-03 01:11:43 +01:00
parent dc35442fb1
commit ef87f970b3

View File

@ -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++;