Skip to content

Commit 4b9fe35

Browse files
committed
Create secrets on only related exceptions
1 parent f5a0926 commit 4b9fe35

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

DnsServerCore/Dns/Security/DnsCookieSecretManager.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ private void LoadLocked()
114114
_currentSecret = current;
115115
_previousSecret = previous;
116116
}
117-
catch
117+
catch (InvalidDataException)
118+
{
119+
GenerateNewSecretsLocked();
120+
}
121+
catch (EndOfStreamException)
118122
{
119123
GenerateNewSecretsLocked();
120124
}

0 commit comments

Comments
 (0)