diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2011-02-11 05:42:28 +0200 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2011-02-14 12:32:22 +0100 |
commit | 6110887802e8912b2a1d17f0bde9d77c8f12ea87 (patch) | |
tree | a3ea5874065db8ab19e275b8ed71941485b6a152 /source4/dsdb/samdb | |
parent | b3ea56ae16a35adc974287b83d6061ce5ffe454e (diff) | |
download | samba-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/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/acl.c | 2 |
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; |