summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/monitor.c b/monitor.c
index b7074cfb4..73cf6bc9b 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor.c,v 1.98 2008/07/04 03:47:02 dtucker Exp $ */ 1/* $OpenBSD: monitor.c,v 1.99 2008/07/10 18:08:11 markus Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * Copyright 2002 Markus Friedl <markus@openbsd.org> 4 * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -1705,7 +1705,7 @@ mm_get_keystate(struct monitor *pmonitor)
1705 u_char *blob, *p; 1705 u_char *blob, *p;
1706 u_int bloblen, plen; 1706 u_int bloblen, plen;
1707 u_int32_t seqnr, packets; 1707 u_int32_t seqnr, packets;
1708 u_int64_t blocks; 1708 u_int64_t blocks, bytes;
1709 1709
1710 debug3("%s: Waiting for new keys", __func__); 1710 debug3("%s: Waiting for new keys", __func__);
1711 1711
@@ -1738,11 +1738,13 @@ mm_get_keystate(struct monitor *pmonitor)
1738 seqnr = buffer_get_int(&m); 1738 seqnr = buffer_get_int(&m);
1739 blocks = buffer_get_int64(&m); 1739 blocks = buffer_get_int64(&m);
1740 packets = buffer_get_int(&m); 1740 packets = buffer_get_int(&m);
1741 packet_set_state(MODE_OUT, seqnr, blocks, packets); 1741 bytes = buffer_get_int64(&m);
1742 packet_set_state(MODE_OUT, seqnr, blocks, packets, bytes);
1742 seqnr = buffer_get_int(&m); 1743 seqnr = buffer_get_int(&m);
1743 blocks = buffer_get_int64(&m); 1744 blocks = buffer_get_int64(&m);
1744 packets = buffer_get_int(&m); 1745 packets = buffer_get_int(&m);
1745 packet_set_state(MODE_IN, seqnr, blocks, packets); 1746 bytes = buffer_get_int64(&m);
1747 packet_set_state(MODE_IN, seqnr, blocks, packets, bytes);
1746 1748
1747 skip: 1749 skip:
1748 /* Get the key context */ 1750 /* Get the key context */