diff options
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r-- | monitor_wrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c index 9662a4c63..670b62dfb 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> |
@@ -500,7 +500,7 @@ mm_newkeys_from_blob(u_char *blob, int blen) | |||
500 | buffer_init(&b); | 500 | buffer_init(&b); |
501 | buffer_append(&b, blob, blen); | 501 | buffer_append(&b, blob, blen); |
502 | 502 | ||
503 | newkey = xmalloc(sizeof(*newkey)); | 503 | newkey = xcalloc(1, sizeof(*newkey)); |
504 | enc = &newkey->enc; | 504 | enc = &newkey->enc; |
505 | mac = &newkey->mac; | 505 | mac = &newkey->mac; |
506 | comp = &newkey->comp; | 506 | comp = &newkey->comp; |