diff options
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index c01efe38c..7b83c591b 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect2.c,v 1.195 2013/05/10 03:40:07 djm Exp $ */ | 1 | /* $OpenBSD: sshconnect2.c,v 1.196 2013/05/16 02:00:34 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2008 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2008 Damien Miller. All rights reserved. |
@@ -197,8 +197,9 @@ ssh_kex2(char *host, struct sockaddr *hostaddr, u_short port) | |||
197 | if (options.kex_algorithms != NULL) | 197 | if (options.kex_algorithms != NULL) |
198 | myproposal[PROPOSAL_KEX_ALGS] = options.kex_algorithms; | 198 | myproposal[PROPOSAL_KEX_ALGS] = options.kex_algorithms; |
199 | 199 | ||
200 | if (options.rekey_limit) | 200 | if (options.rekey_limit || options.rekey_interval) |
201 | packet_set_rekey_limit((u_int32_t)options.rekey_limit); | 201 | packet_set_rekey_limits((u_int32_t)options.rekey_limit, |
202 | (time_t)options.rekey_interval); | ||
202 | 203 | ||
203 | /* start key exchange */ | 204 | /* start key exchange */ |
204 | kex = kex_setup(myproposal); | 205 | kex = kex_setup(myproposal); |