summaryrefslogtreecommitdiff
path: root/ssh-pkcs11.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2020-03-06 18:14:13 +0000
committerDamien Miller <djm@mindrot.org>2020-03-13 13:13:30 +1100
commit31c860a0212af2d5b6a129e3e8fcead51392ee1d (patch)
tree649c7925fad55270eccd9960279d4791c4d5a654 /ssh-pkcs11.c
parent15be29e1e3318737b0768ca37d5b4a3fbe868ef0 (diff)
upstream: pkcs11_register_provider: return < 0 on error; ok djm
OpenBSD-Commit-ID: cfc8321315b787e4d40da4bdb2cbabd4154b0d97
Diffstat (limited to 'ssh-pkcs11.c')
-rw-r--r--ssh-pkcs11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index a302c79c0..cae24525b 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11.c,v 1.47 2020/01/25 00:03:36 djm Exp $ */
+/* $OpenBSD: ssh-pkcs11.c,v 1.48 2020/03/06 18:14:13 markus Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
* Copyright (c) 2014 Pedro Martelletto. All rights reserved.
@@ -1627,6 +1627,8 @@ fail:
}
if (handle)
dlclose(handle);
+ if (ret > 0)
+ ret = -1;
return (ret);
}