diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-09-22 10:42:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:00 -0500 |
commit | 211d3cff2f6d5669af71699c74e6d40c4206249a (patch) | |
tree | b54e10ac93e025a3cac621c318ebeb7d559f7e1a /source4/libcli | |
parent | 988d65c5d1d24b91d0ab5de316f892e09546984a (diff) | |
download | samba-211d3cff2f6d5669af71699c74e6d40c4206249a.tar.gz samba-211d3cff2f6d5669af71699c74e6d40c4206249a.tar.bz2 samba-211d3cff2f6d5669af71699c74e6d40c4206249a.zip |
r2507: Allow a case-insensitive lookup when converting strings into NTSTATUS
values.
Andrew Bartlett
(This used to be commit 59e361f7cca1bbaeba5d5952173b90665a76ab2d)
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/util/nterr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/util/nterr.c b/source4/libcli/util/nterr.c index 563e27ddbf..2adb561222 100644 --- a/source4/libcli/util/nterr.c +++ b/source4/libcli/util/nterr.c @@ -707,7 +707,7 @@ NTSTATUS nt_status_string_to_code(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++; |