git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0433700
)
s3: lib: Replace s3 strnequal with top level strncasecmp_m.
author
Jeremy Allison
<jra@samba.org>
Fri, 11 Nov 2016 01:09:33 +0000
(17:09 -0800)
committer
Andreas Schneider
<asn@cryptomilk.org>
Wed, 16 Nov 2016 11:41:09 +0000
(12:41 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12419
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/lib/access.c
patch
|
blob
|
history
diff --git
a/source3/lib/access.c
b/source3/lib/access.c
index 2875b0300a5ba4a93b57e7df444b05fed33c9d50..b7f58448ca0b4cd3e778e4092809a2a1a3292881 100644
(file)
--- a/
source3/lib/access.c
+++ b/
source3/lib/access.c
@@
-192,11
+192,11
@@
bool client_match(const char *tok, const void *item)
* Bug #5311 and #7383.
*/
- if (strn
equal(tok_addr, "::ffff:",7)
) {
+ if (strn
casecmp_m(tok_addr, "::ffff:", 7) == 0
) {
tok_addr += 7;
}
- if (strn
equal(cli_addr,"::ffff:",7)
) {
+ if (strn
casecmp_m(cli_addr, "::ffff:", 7) == 0
) {
cli_addr += 7;
}