Skip to content

Commit

Permalink
Ignore files without serial in KeyChain
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliux committed Aug 22, 2024
1 parent 75071b9 commit e8a13bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/Kryptor.Cli.Shared/EncryptionSessionHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ public override void Start(ClientContext context)

foreach (EncryptionSession s in Container.Sessions.OfType<EncryptionSession>().Where(x => x.EndReason == SessionEndReason.Completed))
{
if (string.IsNullOrEmpty(s.Header.Serial))
{
continue;
}

KeyChainList.Add(new KeyChain()
{
Serial = s.Header.Serial,
Expand Down

0 comments on commit e8a13bc

Please sign in to comment.