summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-04-09 20:50:06 +1000
committerDamien Miller <djm@mindrot.org>2003-04-09 20:50:06 +1000
commita5539d2698ea83b4a7f9abe7cde8306e2fd76f33 (patch)
treecd95d1bf54f7496bc080a981bc55300f083939f4 /monitor.c
parenta92a589e9716d6b10250c3eb8f4d81d64cd60dd8 (diff)
- (djm) OpenBSD CVS Sync
- markus@cvs.openbsd.org 2003/04/02 09:48:07 [clientloop.c monitor.c monitor_wrap.c packet.c packet.h readconf.c] [readconf.h serverloop.c sshconnect2.c] reapply rekeying chage, tested by henning@, ok djm@
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/monitor.c b/monitor.c
index bcd007e60..4cd10a108 100644
--- a/monitor.c
+++ b/monitor.c
@@ -25,7 +25,7 @@
25 */ 25 */
26 26
27#include "includes.h" 27#include "includes.h"
28RCSID("$OpenBSD: monitor.c,v 1.36 2003/04/01 10:22:21 markus Exp $"); 28RCSID("$OpenBSD: monitor.c,v 1.37 2003/04/02 09:48:07 markus Exp $");
29 29
30#include <openssl/dh.h> 30#include <openssl/dh.h>
31 31
@@ -1497,6 +1497,8 @@ mm_get_keystate(struct monitor *pmonitor)
1497 Buffer m; 1497 Buffer m;
1498 u_char *blob, *p; 1498 u_char *blob, *p;
1499 u_int bloblen, plen; 1499 u_int bloblen, plen;
1500 u_int32_t seqnr, packets;
1501 u_int64_t blocks;
1500 1502
1501 debug3("%s: Waiting for new keys", __func__); 1503 debug3("%s: Waiting for new keys", __func__);
1502 1504
@@ -1526,8 +1528,14 @@ mm_get_keystate(struct monitor *pmonitor)
1526 xfree(blob); 1528 xfree(blob);
1527 1529
1528 /* Now get sequence numbers for the packets */ 1530 /* Now get sequence numbers for the packets */
1529 packet_set_seqnr(MODE_OUT, buffer_get_int(&m)); 1531 seqnr = buffer_get_int(&m);
1530 packet_set_seqnr(MODE_IN, buffer_get_int(&m)); 1532 blocks = buffer_get_int64(&m);
1533 packets = buffer_get_int(&m);
1534 packet_set_state(MODE_OUT, seqnr, blocks, packets);
1535 seqnr = buffer_get_int(&m);
1536 blocks = buffer_get_int64(&m);
1537 packets = buffer_get_int(&m);
1538 packet_set_state(MODE_IN, seqnr, blocks, packets);
1531 1539
1532 skip: 1540 skip:
1533 /* Get the key context */ 1541 /* Get the key context */