Dishonorable discharge - military slang for masturbation, as in the joke:

The sergeant walked into the showers and caught me giving myself a dishonorable discharge. I said, "It's my dick, and I'll wash it as fast as I want.

Yes, I know it's not funny, but it illustrates the point nicely.