summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-23 13:48:49 +0100
committerVolker Lendecke <vl@samba.org>2010-01-23 16:28:11 +0100
commit7c687665eaf16b0c6f83c130f6d9e5459e0b2a32 (patch)
tree600bbf0083297e0f8e0195e9425d64747cdabc9c /libcli
parenta771c184b19cfabfebd77d61ea2d5c51b5f61ef7 (diff)
downloadsamba-7c687665eaf16b0c6f83c130f6d9e5459e0b2a32.tar.gz
samba-7c687665eaf16b0c6f83c130f6d9e5459e0b2a32.tar.bz2
samba-7c687665eaf16b0c6f83c130f6d9e5459e0b2a32.zip
libcli/security: Remove a call to strncasecmp
Diffstat (limited to 'libcli')
-rw-r--r--libcli/security/dom_sid.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c
index 0c8890079a..7cb50c926c 100644
--- a/libcli/security/dom_sid.c
+++ b/libcli/security/dom_sid.c
@@ -85,16 +85,12 @@ bool dom_sid_equal(const struct dom_sid *sid1, const struct dom_sid *sid2)
return dom_sid_compare(sid1, sid2) == 0;
}
-/* Yes, I did think about multibyte issues here, and for all I can see there's
- * none of those for parsing a SID. */
-#undef strncasecmp
-
bool dom_sid_parse(const char *sidstr, struct dom_sid *ret)
{
uint_t rev, ia, num_sub_auths, i;
char *p;
- if (strncasecmp(sidstr, "S-", 2)) {
+ if ((sidstr[0] != 'S' && sidstr[0] != 's') || sidstr[1] != '-') {
return false;
}