]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_cdsa_utilities/lib/acl_preauth.cpp
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_cdsa_utilities / lib / acl_preauth.cpp
index 86ad36e27401988dad08e89cfd230938bf345317..a2f3e41701bfa243d6b775d51137b8ec870a7daa 100644 (file)
@@ -171,7 +171,7 @@ bool SourceAclSubject::SourceAclSubject::validate(const AclValidationContext &ba
                        CssmError::throwMe(CSSM_ERRCODE_INVALID_ACL_SUBJECT_VALUE);
                uint32 slot = CSSM_ACL_AUTHORIZATION_PREAUTH_SLOT(auth);
                secdebug("preauth", "using state %d@%p", slot, &env->store(this));
                        CssmError::throwMe(CSSM_ERRCODE_INVALID_ACL_SUBJECT_VALUE);
                uint32 slot = CSSM_ACL_AUTHORIZATION_PREAUTH_SLOT(auth);
                secdebug("preauth", "using state %d@%p", slot, &env->store(this));
-               bool &accepted = env->store(this).attachment<AclState>((void *)slot).accepted;
+               bool &accepted = env->store(this).attachment<AclState>((void *)((size_t) slot)).accepted;
                if (!accepted) {
                        secdebug("preauth", "%p needs to authenticate its subject", this);
                        SourceValidationContext ctx(baseCtx);
                if (!accepted) {
                        secdebug("preauth", "%p needs to authenticate its subject", this);
                        SourceValidationContext ctx(baseCtx);