]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Remove unused ptr[3] char array in pkcs11_decode_hex.
authorclaudio@openbsd.org <claudio@openbsd.org>
Tue, 2 Apr 2024 09:48:24 +0000 (09:48 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 30 Apr 2024 02:16:51 +0000 (12:16 +1000)
OK deraadt@

OpenBSD-Commit-ID: 3d14433e39fd558f662d3b0431c4c555ef920481

ssh-pkcs11.c

index 9d2d99eb6f252b5e95578d1797ccd1261a627d10..de2dbba56f0e8b5d50a6e1717d9050b001097fc5 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11.c,v 1.60 2024/04/02 09:32:28 deraadt Exp $ */
+/* $OpenBSD: ssh-pkcs11.c,v 1.61 2024/04/02 09:48:24 claudio Exp $ */
 /*
  * Copyright (c) 2010 Markus Friedl.  All rights reserved.
  * Copyright (c) 2014 Pedro Martelletto. All rights reserved.
@@ -1403,7 +1403,6 @@ static int
 pkcs11_decode_hex(const char *hex, unsigned char **dest, size_t *rlen)
 {
        size_t  i, len;
-       char    ptr[3];
 
        if (dest)
                *dest = NULL;
@@ -1416,7 +1415,6 @@ pkcs11_decode_hex(const char *hex, unsigned char **dest, size_t *rlen)
 
        *dest = xmalloc(len);
 
-       ptr[2] = '\0';
        for (i = 0; i < len; i++) {
                int hi, low;