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:
parent
dc35442fb1
commit
ef87f970b3
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user