summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-04-02 09:48:25 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-04-02 09:48:25 +0000
commitb3ec5ad267d1d2cd79d2396857cadfe6baf9a618 (patch)
tree2bfaa8d4b550bd094bccecae58cf04e94db32c1b /usr.bin
parentc0c47f6527629766a8ded485c0a38093f14e1b14 (diff)
Remove unused ptr[3] char array in pkcs11_decode_hex.
OK deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/ssh-pkcs11.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-pkcs11.c b/usr.bin/ssh/ssh-pkcs11.c
index 74fd12048e6..69bff22f07a 100644
--- a/usr.bin/ssh/ssh-pkcs11.c
+++ b/usr.bin/ssh/ssh-pkcs11.c
@@ -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.
@@ -1378,7 +1378,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;
@@ -1391,7 +1390,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;