Updated

Benn Ferriero scored the game-winner 8:48 into 2, at TD Garden.

Boston's Milan Lucic and Tyler Seguin scored 29 seconds apart early in the third to even things, 2-2, but Ferriero's tally a little later and Patrick Marleau's empty-netter in the final seconds gave the Sharks back-to-back wins following a three-game slide.

Joe Pavelski and Logan Couture also scored in the victory, which was credited to Antti Niemi following a 37-save performance.

Tim Thomas made 26 saves in defeat, the Bruins' fourth in six games.