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 */
|
/* NT error codes. please read nterr.h */
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
#undef strcasecmp
|
||||||
|
|
||||||
#if !defined(N_)
|
#if !defined(N_)
|
||||||
#define N_(string) string
|
#define N_(string) string
|
||||||
@ -764,7 +765,7 @@ NTSTATUS nt_status_string_to_code(const char *nt_status_str)
|
|||||||
int idx = 0;
|
int idx = 0;
|
||||||
|
|
||||||
while (nt_errs[idx].nt_errstr != NULL) {
|
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;
|
return nt_errs[idx].nt_errcode;
|
||||||
}
|
}
|
||||||
idx++;
|
idx++;
|
||||||
|
Loading…
Reference in New Issue
Block a user