From a8f55bc10df719fdb65c60c39376c7b274e028d4 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Wed, 16 Mar 2022 11:38:13 -0400 Subject: [PATCH] Seek to origin of MemoryStream before use (#1918) --- src/Admin/Controllers/ToolsController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Admin/Controllers/ToolsController.cs b/src/Admin/Controllers/ToolsController.cs index d46d85f47..07b2a6ed7 100644 --- a/src/Admin/Controllers/ToolsController.cs +++ b/src/Admin/Controllers/ToolsController.cs @@ -274,6 +274,7 @@ namespace Bit.Admin.Controllers var ms = new MemoryStream(); ms.Seek(0, SeekOrigin.Begin); await JsonSerializer.SerializeAsync(ms, license, JsonHelpers.Indented); + ms.Seek(0, SeekOrigin.Begin); return File(ms, "text/plain", "bitwarden_premium_license.json"); } else