Senators goalie Craig Anderson agreed to a two-year, $9.5 million contract extension Friday that will pay him $5.5 million in 2018-19 and $4 million in 2019-20.

The 36-year-old American was set to become an unrestricted free agent at the end of the season.