summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 183ae8d0e..c9714138a 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -25,7 +25,7 @@
25 */ 25 */
26 26
27#include "includes.h" 27#include "includes.h"
28RCSID("$OpenBSD: monitor_wrap.c,v 1.26 2003/04/07 08:29:57 markus Exp $"); 28RCSID("$OpenBSD: monitor_wrap.c,v 1.24 2003/04/01 10:22:21 markus Exp $");
29 29
30#include <openssl/bn.h> 30#include <openssl/bn.h>
31#include <openssl/dh.h> 31#include <openssl/dh.h>
@@ -520,8 +520,6 @@ mm_send_keystate(struct monitor *pmonitor)
520 Buffer m; 520 Buffer m;
521 u_char *blob, *p; 521 u_char *blob, *p;
522 u_int bloblen, plen; 522 u_int bloblen, plen;
523 u_int32_t seqnr, packets;
524 u_int64_t blocks;
525 523
526 buffer_init(&m); 524 buffer_init(&m);
527 525
@@ -570,14 +568,8 @@ mm_send_keystate(struct monitor *pmonitor)
570 buffer_put_string(&m, blob, bloblen); 568 buffer_put_string(&m, blob, bloblen);
571 xfree(blob); 569 xfree(blob);
572 570
573 packet_get_state(MODE_OUT, &seqnr, &blocks, &packets); 571 buffer_put_int(&m, packet_get_seqnr(MODE_OUT));
574 buffer_put_int(&m, seqnr); 572 buffer_put_int(&m, packet_get_seqnr(MODE_IN));
575 buffer_put_int64(&m, blocks);
576 buffer_put_int(&m, packets);
577 packet_get_state(MODE_IN, &seqnr, &blocks, &packets);
578 buffer_put_int(&m, seqnr);
579 buffer_put_int64(&m, blocks);
580 buffer_put_int(&m, packets);
581 573
582 debug3("%s: New keys have been sent", __func__); 574 debug3("%s: New keys have been sent", __func__);
583 skip: 575 skip: