Of course if he hadn't, he wouldn't have been able to write a story about it and the security holes would not have become public knowledge.
The laws in these areas are insanely antiquated and this is not the first time investigated people in power have tried to use them to silence or smear journalists. Freedom of speech is threatened.