In other words, being a "homosexual" (regardless of behavior) can get you discharged from the military if you reveal the fact.
That's pretty close to a law _not_ against sodomy but against the identity of "homosexual."
Carrol