From 726c979b255eeff3770d93067d8d353b92b4df03 Mon Sep 17 00:00:00 2001 From: Ray Lillback Date: Wed, 3 Jul 2024 11:06:33 -0400 Subject: [PATCH] Update for Keyfactor v12. Still completely compatible with early versions --- session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/session.c b/session.c index 53a35a6..1dcecef 100644 --- a/session.c +++ b/session.c @@ -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))) ) { @@ -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))) ) {