Skip to content

Commit

Permalink
Update for Keyfactor v12. Still completely compatible with early vers…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
rlillback committed Jul 3, 2024
1 parent ebd588a commit 726c979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ int register_session(struct SessionInfo* session,
} else {
do_normal_registration_response(resp, session, pJobList, schedule);
}
} else if(resp->Result.Status == STAT_ERR &&
} else if((resp->Result.Status == STAT_ERR || resp->Result.Status == STAT_WARN) &&
resp->Result.Error.CodeString &&
((0 == strcasecmp("A0100007", resp->Result.Error.CodeString)) ||
(0 == strcasecmp("A0100008", resp->Result.Error.CodeString))) ) {
Expand All @@ -841,7 +841,7 @@ int register_session(struct SessionInfo* session,
}
} else { /* We have a response, but no token */
AgentApiResult_log(resp->Result, NULL, NULL);
if (resp->Result.Status == STAT_ERR &&
if ((resp->Result.Status == STAT_ERR || resp->Result.Status == STAT_WARN) &&
resp->Result.Error.CodeString &&
((0 == strcasecmp("A0100007", resp->Result.Error.CodeString)) ||
(0 == strcasecmp("A0100008", resp->Result.Error.CodeString))) ) {
Expand Down

0 comments on commit 726c979

Please sign in to comment.