Contract law. I'm not aware of it having been tested, but a contractual obligation not to distribute something is not the same as something not being copyrighted. See the post on HN yesterday about atlassian not allowing performance comparisons as part of their TOS.