aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/apdu.c')
-rw-r--r--scd/apdu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 978d9ae3d..0d6ad9a85 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -798,6 +798,12 @@ apdu_open_reader (const char *portstr)
{
void *handle;
+ if (!opt.pcsc_driver || !*opt.pcsc_driver)
+ {
+ log_error ("no PC/SC driver has been specified\n");
+ return -1;
+ }
+
handle = dlopen ("libpcsclite.so", RTLD_LAZY);
if (!handle)
{