Skip to content

Commit b23fe83

Browse files
committed
terminate pkcs11 process for bad libraries
1 parent cb30fbd commit b23fe83

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ssh-pkcs11.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,10 +1537,8 @@ pkcs11_register_provider(char *provider_id, char *pin,
15371537
error("dlopen %s failed: %s", provider_id, dlerror());
15381538
goto fail;
15391539
}
1540-
if ((getfunctionlist = dlsym(handle, "C_GetFunctionList")) == NULL) {
1541-
error("dlsym(C_GetFunctionList) failed: %s", dlerror());
1542-
goto fail;
1543-
}
1540+
if ((getfunctionlist = dlsym(handle, "C_GetFunctionList")) == NULL)
1541+
fatal("dlsym(C_GetFunctionList) failed: %s", dlerror());
15441542
p = xcalloc(1, sizeof(*p));
15451543
p->name = xstrdup(provider_id);
15461544
p->handle = handle;

0 commit comments

Comments
 (0)