- markus@cvs.openbsd.org 2012/09/17 13:04:11
[packet.c] clear old keys on rekeing; ok djm
This commit is contained in:
parent
0af2405ebf
commit
302889a1b0
|
@ -3,6 +3,9 @@
|
|||
- djm@cvs.openbsd.org 2012/09/17 09:54:44
|
||||
[sftp.c]
|
||||
an XXX for later
|
||||
- markus@cvs.openbsd.org 2012/09/17 13:04:11
|
||||
[packet.c]
|
||||
clear old keys on rekeing; ok djm
|
||||
|
||||
20120917
|
||||
- (dtucker) OpenBSD CVS Sync
|
||||
|
|
5
packet.c
5
packet.c
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: packet.c,v 1.176 2012/01/25 19:40:09 markus Exp $ */
|
||||
/* $OpenBSD: packet.c,v 1.177 2012/09/17 13:04:11 markus Exp $ */
|
||||
/*
|
||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||
|
@ -757,6 +757,9 @@ set_newkeys(int mode)
|
|||
mac = &active_state->newkeys[mode]->mac;
|
||||
comp = &active_state->newkeys[mode]->comp;
|
||||
mac_clear(mac);
|
||||
memset(enc->iv, 0, enc->block_size);
|
||||
memset(enc->key, 0, enc->key_len);
|
||||
memset(mac->key, 0, mac->key_len);
|
||||
xfree(enc->name);
|
||||
xfree(enc->iv);
|
||||
xfree(enc->key);
|
||||
|
|
Loading…
Reference in New Issue