It could be a problem at companies where salaries are under an NDA. If the companies find out you broke the NDA you could get fired. I'm pretty sure my company has such a clause.
Done.
If they're smart and they want you to stay, they still won't bother with petty stuff like that, because firing people is expensive and hiring them even more so; they'll either look the other way or find a diplomatic way to deal with it.