diff options
author | 2019-05-16 08:47:27 +0000 | |
---|---|---|
committer | 2019-05-16 08:47:27 +0000 | |
commit | 52825b266e297b12f3fa74033de7a7181a9d6e02 (patch) | |
tree | dc4b171d459540398d1299ee26708473150f63b1 | |
parent | treat vms that are disabled in vm.conf the same as any other vm that's stopped (diff) | |
download | wireguard-openbsd-52825b266e297b12f3fa74033de7a7181a9d6e02.tar.xz wireguard-openbsd-52825b266e297b12f3fa74033de7a7181a9d6e02.zip |
Move a variable declaration to the block where it's used to make things
a little tidier for -portable.
-rw-r--r-- | usr.bin/ssh/ssh-pkcs11-helper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-pkcs11-helper.c b/usr.bin/ssh/ssh-pkcs11-helper.c index 48c4d42f48d..e9541e3c361 100644 --- a/usr.bin/ssh/ssh-pkcs11-helper.c +++ b/usr.bin/ssh/ssh-pkcs11-helper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-pkcs11-helper.c,v 1.17 2019/01/23 02:01:10 djm Exp $ */ +/* $OpenBSD: ssh-pkcs11-helper.c,v 1.18 2019/05/16 08:47:27 dtucker Exp $ */ /* * Copyright (c) 2010 Markus Friedl. All rights reserved. * @@ -188,7 +188,6 @@ process_sign(void) else { if ((found = lookup_key(key)) != NULL) { #ifdef WITH_OPENSSL - u_int xslen; int ret; if (key->type == KEY_RSA) { @@ -201,7 +200,8 @@ process_sign(void) ok = 0; } } else if (key->type == KEY_ECDSA) { - xslen = ECDSA_size(key->ecdsa); + u_int xslen = ECDSA_size(key->ecdsa); + signature = xmalloc(xslen); /* "The parameter type is ignored." */ ret = ECDSA_sign(-1, data, dlen, signature, |