rcolebaugh / rpms / openssh

Forked from rpms/openssh 2 years ago
Clone
6fa799
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
6fa799
index 6be647ec..ebddf6c3 100644
6fa799
--- a/ssh-pkcs11.c
6fa799
+++ b/ssh-pkcs11.c
6fa799
@@ -1537,10 +1537,8 @@ pkcs11_register_provider(char *provider_id, char *pin,
6fa799
 		error("dlopen %s failed: %s", provider_module, dlerror());
6fa799
 		goto fail;
6fa799
 	}
6fa799
-	if ((getfunctionlist = dlsym(handle, "C_GetFunctionList")) == NULL) {
6fa799
-		error("dlsym(C_GetFunctionList) failed: %s", dlerror());
6fa799
-		goto fail;
6fa799
-	}
6fa799
+	if ((getfunctionlist = dlsym(handle, "C_GetFunctionList")) == NULL)
6fa799
+		fatal("dlsym(C_GetFunctionList) failed: %s", dlerror());
6fa799
 
6fa799
 	p->module->handle = handle;
6fa799
 	/* setup the pkcs11 callbacks */