[openssh-commits] [openssh] 01/05: terminate pkcs11 process for bad libraries

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Jul 20 00:31:26 AEST 2023


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch V_9_3
in repository openssh.

commit b23fe83f06ee7e721033769cfa03ae840476d280
Author: Damien Miller <djm at mindrot.org>
Date:   Thu Jul 13 12:09:34 2023 +1000

    terminate pkcs11 process for bad libraries
---
 ssh-pkcs11.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index 6be647ec..ebddf6c3 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1537,10 +1537,8 @@ pkcs11_register_provider(char *provider_id, char *pin,
 		error("dlopen %s failed: %s", provider_id, dlerror());
 		goto fail;
 	}
-	if ((getfunctionlist = dlsym(handle, "C_GetFunctionList")) == NULL) {
-		error("dlsym(C_GetFunctionList) failed: %s", dlerror());
-		goto fail;
-	}
+	if ((getfunctionlist = dlsym(handle, "C_GetFunctionList")) == NULL)
+		fatal("dlsym(C_GetFunctionList) failed: %s", dlerror());
 	p = xcalloc(1, sizeof(*p));
 	p->name = xstrdup(provider_id);
 	p->handle = handle;

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list