The sole rights of the source code would lie with the client and you have the authority to sell the source code to an external party.