Fix pkcs11 related bug in dighost.c

Signed-off-by: Tomas Hozza <thozza@redhat.com>