We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a3b963 commit ca574dbCopy full SHA for ca574db
packet.c
@@ -969,6 +969,11 @@ ssh_set_newkeys(struct ssh *ssh, int mode)
969
* handle safely */
970
*max_blocks = cipher_rekey_blocks(enc->cipher);
971
972
+ /* if we have a custom oRekeyLimit use that. */
973
+ if (state->rekey_limit)
974
+ *max_blocks = MINIMUM(*max_blocks,
975
+ state->rekey_limit / enc->block_size);
976
+
977
/* these lines support the debug */
978
strlcpy(blocks_s, "?", sizeof(blocks_s));
979
strlcpy(bytes_s, "?", sizeof(bytes_s));
0 commit comments