diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | monitor_wrap.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -10,6 +10,9 @@ | |||
10 | [monitor.c] | 10 | [monitor.c] |
11 | fix rekeying for KEX_C25519_SHA256; noted by dtucker@ | 11 | fix rekeying for KEX_C25519_SHA256; noted by dtucker@ |
12 | RCSID sync only; I thought this was a merge botch and fixed it already | 12 | RCSID sync only; I thought this was a merge botch and fixed it already |
13 | - markus@cvs.openbsd.org 2013/11/06 16:52:11 | ||
14 | [monitor_wrap.c] | ||
15 | fix rekeying for AES-GCM modes; ok deraadt | ||
13 | 16 | ||
14 | 20131104 | 17 | 20131104 |
15 | - (djm) OpenBSD CVS Sync | 18 | - (djm) OpenBSD CVS Sync |
diff --git a/monitor_wrap.c b/monitor_wrap.c index 88ff68330..4ce469605 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: monitor_wrap.c,v 1.76 2013/05/17 00:13:13 djm Exp $ */ | 1 | /* $OpenBSD: monitor_wrap.c,v 1.77 2013/11/06 16:52: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> |
@@ -482,7 +482,7 @@ mm_newkeys_from_blob(u_char *blob, int blen) | |||
482 | buffer_init(&b); | 482 | buffer_init(&b); |
483 | buffer_append(&b, blob, blen); | 483 | buffer_append(&b, blob, blen); |
484 | 484 | ||
485 | newkey = xmalloc(sizeof(*newkey)); | 485 | newkey = xcalloc(1, sizeof(*newkey)); |
486 | enc = &newkey->enc; | 486 | enc = &newkey->enc; |
487 | mac = &newkey->mac; | 487 | mac = &newkey->mac; |
488 | comp = &newkey->comp; | 488 | comp = &newkey->comp; |