I don't think so.
I think it was the affair with the direct report that did him in.
That's a bigger no-no than selling to spies, especially when the administration knew about it and did nothing.