In this case the real search engine on Yahoo is Bing. It will surely be 5 more years and Bing would be interested in keeping this deal going. And don't forget that Yahoo has been in talks to be bought by Microsoft before.
"Old age and treachery will beat youth and skill every time." -- a coffee cup