rcolebaugh / rpms / openssh

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