Skip to content

Commit 19b3f3e

Browse files
authored
Merge pull request #371 from ejohnstown/size-fix
Size Calculation Fix
2 parents 4880377 + 0402caa commit 19b3f3e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/internal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7434,14 +7434,13 @@ int SendKexDhReply(WOLFSSH* ssh)
74347434
}
74357435
}
74367436

7437-
sigBlockSz = (LENGTH_SZ * 2) + sigKeyBlock_ptr->nameSz + sigSz;
7438-
74397437
if (ret == WS_SUCCESS)
74407438
ret = GenerateKeys(ssh);
74417439

74427440
/* Get the buffer, copy the packet data, once f is laid into the buffer,
74437441
* add it to the hash and then add K. */
74447442
if (ret == WS_SUCCESS) {
7443+
sigBlockSz = (LENGTH_SZ * 2) + sigKeyBlock_ptr->nameSz + sigSz;
74457444
payloadSz = MSG_ID_SZ + (LENGTH_SZ * 3) +
74467445
sigKeyBlock_ptr->sz + fSz + fPad + sigBlockSz;
74477446
ret = PreparePacket(ssh, payloadSz);

0 commit comments

Comments
 (0)