Skip to content

Commit

Permalink
Merge pull request #124 from jhiemstrawisc/fix-enforcer_acl_free
Browse files Browse the repository at this point in the history
Fix enforcer_acl_free logic
  • Loading branch information
djw8605 authored Jun 6, 2023
2 parents e0251c9 + 7afec24 commit 59bd943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scitokens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ void enforcer_destroy(Enforcer enf) {

void enforcer_acl_free(Acl *acls) {
for (int idx = 0;
acls[idx].authz == nullptr && acls[idx].resource == nullptr; idx++) {
acls[idx].authz != nullptr || acls[idx].resource != nullptr; idx++) {
free(const_cast<char *>(acls[idx].authz));
free(const_cast<char *>(acls[idx].resource));
}
Expand Down

0 comments on commit 59bd943

Please sign in to comment.