]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: pkcs11_register_provider: return < 0 on error; ok djm
authormarkus@openbsd.org <markus@openbsd.org>
Fri, 6 Mar 2020 18:14:13 +0000 (18:14 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 13 Mar 2020 02:13:30 +0000 (13:13 +1100)
OpenBSD-Commit-ID: cfc8321315b787e4d40da4bdb2cbabd4154b0d97

ssh-pkcs11.c

index a302c79c0c18ce7ac9b9e3043f88332d20454591..cae24525b89d9e074d690f758586512985fd20e4 100644 (file)
@@ -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);
 }