OPENDNSSEC-538: libhsm: Possible memory corruption in hsm_get_slot_id.