Two men had been accused of passing politically sensitive information to a Chinese intelligence agent.