The sale was made in violation of the agreement, so B has the right to sue for specific performance of the sale agreement. C has the right to defend the suit as third party rights have been created in his favour. He has to contest the case on the basis of being a bona fide purchaser of land but this is a weak defence in as much as it was C's duty before purchasing the land to ascertain that the title of the land was clear and marketable.