fix bug causing a core dump.
fix bug causing a core dump.


mouse07410/libp11,mtrojnar/libp11,nmav/libp11,OpenSC/libp11,nmav/libp11,mtrojnar/libp11,OpenSC/libp11,gerow/libp11,gerow/libp11,mouse07410/libp11,dengert/libp11,dengert/libp11