Skip to content

Commit 346c5c1

Browse files
Merge pull request #916 from yosuke-wolfssl/f_2861
Fix PostSignRequest
2 parents 543a6c2 + c0f1a1f commit 346c5c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/agent.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ static int PostSignRequest(WOLFSSH_AGENT_CTX* agent,
863863
}
864864

865865
if (ret == WS_SUCCESS) {
866+
digestSz = (word32)wc_HashGetDigestSize(hashType);
866867
ret = wc_Hash(hashType, data, dataSz, digest, digestSz);
867868
if (ret != 0)
868869
ret = WS_CRYPTO_FAILED;

0 commit comments

Comments
 (0)