diff options
author | djm@openbsd.org <djm@openbsd.org> | 2023-03-31 05:22:49 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-03-31 06:06:19 +0200 |
commit | fc437c154ef724621a4af236de9bc7e51a8381ae (patch) | |
tree | 0bbb1b312c26b2c4018b7586f04b76a64ab3ba2f /sshkey.c | |
parent | upstream: Check fd against >=0 instead of >0 in error path. The (diff) | |
download | openssh-fc437c154ef724621a4af236de9bc7e51a8381ae.tar.xz openssh-fc437c154ef724621a4af236de9bc7e51a8381ae.zip |
upstream: remove unused variable; prompted by Coverity CID 291879
OpenBSD-Commit-ID: 4c7d20ef776887b0ba1aabcfc1b14690e4ad0a40
Diffstat (limited to 'sshkey.c')
-rw-r--r-- | sshkey.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sshkey.c,v 1.134 2022/10/28 02:47:04 djm Exp $ */ +/* $OpenBSD: sshkey.c,v 1.135 2023/03/31 03:22:49 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. * Copyright (c) 2008 Alexander von Gernler. All rights reserved. @@ -2743,7 +2743,6 @@ sshkey_private_to_blob2(struct sshkey *prv, struct sshbuf *blob, { u_char *cp, *key = NULL, *pubkeyblob = NULL; u_char salt[SALT_LEN]; - char *b64 = NULL; size_t i, pubkeylen, keylen, ivlen, blocksize, authlen; u_int check; int r = SSH_ERR_INTERNAL_ERROR; @@ -2860,8 +2859,6 @@ sshkey_private_to_blob2(struct sshkey *prv, struct sshbuf *blob, freezero(key, keylen + ivlen); if (pubkeyblob != NULL) freezero(pubkeyblob, pubkeylen); - if (b64 != NULL) - freezero(b64, strlen(b64)); return r; } |