summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2013-11-06 16:52:12 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2013-11-06 16:52:12 +0000
commitb2e8999c2f755e2aaf35e62ab78255fc8fe788cd (patch)
tree9719ca765f0384cbe3911ec6281ac5d13383c104 /usr.bin
parent1c0365749377de536afb46854f4e6030fd1b3217 (diff)
fix rekeying for AES-GCM modes; ok deraadt
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/monitor_wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/monitor_wrap.c b/usr.bin/ssh/monitor_wrap.c
index e78ceeb912c..b5dd8dfede6 100644
--- a/usr.bin/ssh/monitor_wrap.c
+++ b/usr.bin/ssh/monitor_wrap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor_wrap.c,v 1.76 2013/05/17 00:13:13 djm Exp $ */
+/* $OpenBSD: monitor_wrap.c,v 1.77 2013/11/06 16:52:11 markus Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -469,7 +469,7 @@ mm_newkeys_from_blob(u_char *blob, int blen)
buffer_init(&b);
buffer_append(&b, blob, blen);
- newkey = xmalloc(sizeof(*newkey));
+ newkey = xcalloc(1, sizeof(*newkey));
enc = &newkey->enc;
mac = &newkey->mac;
comp = &newkey->comp;