diff options
author | claudio@openbsd.org <claudio@openbsd.org> | 2024-04-02 11:48:24 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2024-04-30 04:16:51 +0200 |
commit | 8673137f780d8d9e4cda3c4605cb5d88d5cea271 (patch) | |
tree | fb1d2b2348b6f92361a1f839d1968dec96906143 /ssh-pkcs11.c | |
parent | upstream: Replace non-idiomatic strtoul(, 16) to parse a region (diff) | |
download | openssh-8673137f780d8d9e4cda3c4605cb5d88d5cea271.tar.xz openssh-8673137f780d8d9e4cda3c4605cb5d88d5cea271.zip |
upstream: Remove unused ptr[3] char array in pkcs11_decode_hex.
OK deraadt@
OpenBSD-Commit-ID: 3d14433e39fd558f662d3b0431c4c555ef920481
Diffstat (limited to 'ssh-pkcs11.c')
-rw-r--r-- | ssh-pkcs11.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c index 9d2d99eb6..de2dbba56 100644 --- a/ssh-pkcs11.c +++ b/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. @@ -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; |