From a8f9e7e9ab7054ef757143b31398a4664af876e0 Mon Sep 17 00:00:00 2001 From: OpenAI Build Bot Date: Fri, 5 Jun 2026 19:55:14 +0000 Subject: [PATCH] Treat base64 key EOF as successful decode --- flaim/src/f_nici.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flaim/src/f_nici.cpp b/flaim/src/f_nici.cpp index c3924be..6d8076b 100644 --- a/flaim/src/f_nici.cpp +++ b/flaim/src/f_nici.cpp @@ -1539,7 +1539,15 @@ RCODE F_CCS::setKeyFromStore( if( RC_BAD( rc = B64Decoder.read( (void *)pucKeyBuf, ui32BufLen, &uiLength))) { - goto Exit; + if( rc != FERR_EOF_HIT) + { + goto Exit; + } + + // F_Base64DecoderIStream signals end-of-stream with EOF after + // returning the decoded bytes. In this path EOF is a successful + // completion, not a failed key decode. + rc = FERR_OK; } pucTmp = pucKeyBuf; }