[openssh-commits] [openssh] 04/04: upstream: Move a variable declaration to the block where it's used

git+noreply at mindrot.org git+noreply at mindrot.org
Fri May 17 10:08:23 AEST 2019


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 5c8d14c512f5d413095b22bdba08a6bb990f1e97
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date:   Thu May 16 08:47:27 2019 +0000

    upstream: Move a variable declaration to the block where it's used
    
    to make things a little tidier for -portable.
    
    OpenBSD-Commit-ID: 616379861be95619e5358768b7dee4793e2f3a75
---
 ssh-pkcs11-helper.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c
index 97fb1212..807ceb66 100644
--- a/ssh-pkcs11-helper.c
+++ b/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.
  *
@@ -195,7 +195,6 @@ process_sign(void)
 	else {
 		if ((found = lookup_key(key)) != NULL) {
 #ifdef WITH_OPENSSL
-			u_int xslen;
 			int ret;
 
 			if (key->type == KEY_RSA) {
@@ -208,7 +207,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,

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list