diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include "includes.h" | 39 | #include "includes.h" |
40 | RCSID("$OpenBSD: packet.c,v 1.57 2001/04/03 23:32:12 markus Exp $"); | 40 | RCSID("$OpenBSD: packet.c,v 1.58 2001/04/04 09:48:34 markus Exp $"); |
41 | 41 | ||
42 | #include "xmalloc.h" | 42 | #include "xmalloc.h" |
43 | #include "buffer.h" | 43 | #include "buffer.h" |
@@ -525,7 +525,8 @@ set_newkeys(int mode) | |||
525 | if (newkeys[mode] != NULL) { | 525 | if (newkeys[mode] != NULL) { |
526 | debug("newkeys: rekeying"); | 526 | debug("newkeys: rekeying"); |
527 | memset(cc, 0, sizeof(*cc)); | 527 | memset(cc, 0, sizeof(*cc)); |
528 | // free old keys, reset compression cipher-contexts; | 528 | /* todo: free old keys, reset compression/cipher-ctxt; */ |
529 | xfree(newkeys[mode]); | ||
529 | } | 530 | } |
530 | newkeys[mode] = kex_get_newkeys(mode); | 531 | newkeys[mode] = kex_get_newkeys(mode); |
531 | if (newkeys[mode] == NULL) | 532 | if (newkeys[mode] == NULL) |