goid-tool: fixed confusion about always/never acl

This commit is contained in:
Frank Morgner 2019-02-08 15:07:13 +01:00
parent aca9d79f6d
commit 72cdc9d82e

View File

@ -461,9 +461,9 @@ paccess_get_security_attributes(struct sc_context *ctx, const char *ac, int* cha
int ok = 0;
memset(sec_attr, 0, 2);
if (!ac || 0 == strcmp(ac, "never")) {
/* nothing else to do */
} else if (0 == strcmp(ac, "always")) {
sec_attr[0] |= 0xFF;
} else if (0 == strcmp(ac, "always")) {
/* nothing else to do */
} else {
size_t i;
if (0 == strcmp(ac, "ta")) {