diff options
author | Wouter Tinus <win.acme.simple@gmail.com> | 2020-07-18 22:34:32 +0200 |
---|---|---|
committer | Wouter Tinus <win.acme.simple@gmail.com> | 2020-07-18 22:34:32 +0200 |
commit | ce24162d684b6b87897a0481e857cbac209df715 (patch) | |
tree | a167df0e5e0f1e993ed35a8f6b80cebbf132ae1d /src/main.lib/Plugins/StorePlugins/PfxFile/PfxFile.cs | |
parent | 16a6fd4f22e9fc3973fc8c0062cc6479d6ac9e96 (diff) | |
download | letsencrypt-win-simple-ce24162d684b6b87897a0481e857cbac209df715.zip letsencrypt-win-simple-ce24162d684b6b87897a0481e857cbac209df715.tar.gz letsencrypt-win-simple-ce24162d684b6b87897a0481e857cbac209df715.tar.bz2 |
prevent crash with multiple store plugins of the same type
Diffstat (limited to 'src/main.lib/Plugins/StorePlugins/PfxFile/PfxFile.cs')
-rw-r--r-- | src/main.lib/Plugins/StorePlugins/PfxFile/PfxFile.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.lib/Plugins/StorePlugins/PfxFile/PfxFile.cs b/src/main.lib/Plugins/StorePlugins/PfxFile/PfxFile.cs index 03ca169..e86834b 100644 --- a/src/main.lib/Plugins/StorePlugins/PfxFile/PfxFile.cs +++ b/src/main.lib/Plugins/StorePlugins/PfxFile/PfxFile.cs @@ -57,7 +57,8 @@ namespace PKISharp.WACS.Plugins.StorePlugins { _log.Error(ex, "Error copying certificate to pfx path"); } - input.StoreInfo.Add(GetType(), + input.StoreInfo.TryAdd(
+ GetType(), new StoreInfo() { Name = PfxFileOptions.PluginName, |