aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Iis/ca/scacert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/Iis/ca/scacert.cpp')
-rw-r--r--src/ext/Iis/ca/scacert.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ext/Iis/ca/scacert.cpp b/src/ext/Iis/ca/scacert.cpp
index 5eae905a..0bb87f9f 100644
--- a/src/ext/Iis/ca/scacert.cpp
+++ b/src/ext/Iis/ca/scacert.cpp
@@ -552,8 +552,12 @@ static HRESULT ReadCertificateFile(
552 // If we have a PFX blob, get the first certificate out of the PFX and use that instead of the PFX. 552 // If we have a PFX blob, get the first certificate out of the PFX and use that instead of the PFX.
553 if (dwContentType & CERT_QUERY_CONTENT_PFX) 553 if (dwContentType & CERT_QUERY_CONTENT_PFX)
554 { 554 {
555 hr = FileRead(&pbData, &cbData, wzPath); 555 SIZE_T size = 0;
556
557 hr = FileRead(&pbData, &size, wzPath);
556 ExitOnFailure(hr, "Failed to read PFX file: %ls", wzPath); 558 ExitOnFailure(hr, "Failed to read PFX file: %ls", wzPath);
559
560 cbData = (DWORD)size;
557 } 561 }
558 else 562 else
559 { 563 {