summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2011-02-11 05:42:28 +0200
committerKamen Mazdrashki <kamenim@samba.org>2011-02-14 12:32:22 +0100
commit6110887802e8912b2a1d17f0bde9d77c8f12ea87 (patch)
treea3ea5874065db8ab19e275b8ed71941485b6a152 /source4/dsdb
parentb3ea56ae16a35adc974287b83d6061ce5ffe454e (diff)
downloadsamba-6110887802e8912b2a1d17f0bde9d77c8f12ea87.tar.gz
samba-6110887802e8912b2a1d17f0bde9d77c8f12ea87.tar.bz2
samba-6110887802e8912b2a1d17f0bde9d77c8f12ea87.zip
s4/ldb_modules/acl.c: Fix calculation for samAccountName string len
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c
index 69ff2aae94..21843ad6e0 100644
--- a/source4/dsdb/samdb/ldb_modules/acl.c
+++ b/source4/dsdb/samdb/ldb_modules/acl.c
@@ -507,7 +507,7 @@ static int acl_validate_spn_value(TALLOC_CTX *mem_ctx,
}
/* instanceName can be samAccountName without $ or dnsHostName
* or "ntds_guid._msdcs.forest_domain for DC objects */
- if (strncasecmp(instanceName, samAccountName, strlen(samAccountName - 1)) == 0) {
+ if (strncasecmp(instanceName, samAccountName, strlen(samAccountName) - 1) == 0) {
goto success;
} else if (strcasecmp(instanceName, dnsHostName) == 0) {
goto success;