diff options
author | Ed Maste <emaste@FreeBSD.org> | 2022-10-04 20:34:15 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2022-10-04 20:34:37 +0000 |
commit | 963c7b084b8bf2397deced4f568b976a42611910 (patch) | |
tree | 2c7861d33d3393a274af8434aaa1e6f464b9a124 /crypto | |
parent | 666605ad2df3f5c1fb973dbd719ffbe3f3935c1d (diff) | |
download | src-963c7b084b8bf2397deced4f568b976a42611910.tar.gz src-963c7b084b8bf2397deced4f568b976a42611910.zip |
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/openssh/ssh-keysign.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/openssh/ssh-keysign.c b/crypto/openssh/ssh-keysign.c index c52321e220e7..b989f5e941ad 100644 --- a/crypto/openssh/ssh-keysign.c +++ b/crypto/openssh/ssh-keysign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keysign.c,v 1.70 2022/01/06 22:00:18 djm Exp $ */ +/* $OpenBSD: ssh-keysign.c,v 1.71 2022/08/01 11:09:26 djm Exp $ */ /* * Copyright (c) 2002 Markus Friedl. All rights reserved. * @@ -155,9 +155,7 @@ valid_request(struct passwd *pw, char *host, struct sshkey **ret, char **pkalgp, debug3_f("fail %d", fail); - if (fail) - sshkey_free(key); - else { + if (!fail) { if (ret != NULL) { *ret = key; key = NULL; |