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