If you have the weapon legally, you generally have little to worry about. If you are having it, as you said, illegally... then you kind of put yourself in those shoes. :/

It sucks... but it's there. And yeah, it varies greatly from state to state.