alonbl / gnupg-pkcs11-scd

PKCS#11 GnuPG SCD
http://gnupg-pkcs11.sourceforge.net/
Other
68 stars 17 forks source link

gnupg-pkcs11-scd/command.c: fix segfault on PKAUTH command #40

Closed invidian closed 2 years ago

invidian commented 2 years ago

It seems hash value is no longer an empty string but a null pointer, so the condition must handle it, otherwise it segfaults.

Closes #39

Signed-off-by: Mateusz Gozdek mgozdekof@gmail.com

alonbl commented 2 years ago

Thanks!