diff options
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -25,7 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "includes.h" | 27 | #include "includes.h" |
28 | RCSID("$OpenBSD: monitor.c,v 1.36 2003/04/01 10:22:21 markus Exp $"); | 28 | RCSID("$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 */ |