We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4880377 + 0402caa commit 19b3f3eCopy full SHA for 19b3f3e
1 file changed
src/internal.c
@@ -7434,14 +7434,13 @@ int SendKexDhReply(WOLFSSH* ssh)
7434
}
7435
7436
7437
- sigBlockSz = (LENGTH_SZ * 2) + sigKeyBlock_ptr->nameSz + sigSz;
7438
-
7439
if (ret == WS_SUCCESS)
7440
ret = GenerateKeys(ssh);
7441
7442
/* Get the buffer, copy the packet data, once f is laid into the buffer,
7443
* add it to the hash and then add K. */
7444
if (ret == WS_SUCCESS) {
+ sigBlockSz = (LENGTH_SZ * 2) + sigKeyBlock_ptr->nameSz + sigSz;
7445
payloadSz = MSG_ID_SZ + (LENGTH_SZ * 3) +
7446
sigKeyBlock_ptr->sz + fSz + fPad + sigBlockSz;
7447
ret = PreparePacket(ssh, payloadSz);
0 commit comments