summaryrefslogtreecommitdiff
path: root/ssh-pkcs11.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2018-05-06 12:27:04 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2018-05-06 12:27:04 +0000
commitc8a2bf14627149859c5fed86cf127096c4fa2870 (patch)
treeef199c6473bfba3c2e54c54f70d991ccedcb1e3d /ssh-pkcs11.c
parent20adc8f2a99cd37b64a80ef63dfc5ba6627d4dfb (diff)
Diffstat (limited to 'ssh-pkcs11.c')
-rw-r--r--ssh-pkcs11.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index b37491c5d68d7..65a7b58979d13 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11.c,v 1.25 2017/05/31 09:15:42 deraadt Exp $ */
+/* $OpenBSD: ssh-pkcs11.c,v 1.26 2018/02/07 02:06:51 jsing Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
*
@@ -532,8 +532,7 @@ pkcs11_fetch_keys_filter(struct pkcs11_provider *p, CK_ULONG slotidx,
== NULL) {
error("RSAPublicKey_dup");
}
- if (x509)
- X509_free(x509);
+ X509_free(x509);
}
if (rsa && rsa->n && rsa->e &&
pkcs11_rsa_wrap(p, slotidx, &attribs[0], rsa) == 0) {