Paul Gaustad had a goal and two assists to lead the Buffalo Sabres to a 3-1 win over the Montreal Canadiens on Tuesday night.

Ryan Miller made 27 saves for Buffalo, which won its second straight road game following a 12-game losing streak away from home.

Gaustad set up Ville Leino’s fourth goal 4:01 into the second period to tie it at 1. Gaustad beat Carey Price from the goalmouth to give the Sabres the lead 6:17 into the third and assisted as Patrick Kaleta scored into an empty net with 51.1 seconds remaining.

Max Pacioretty scored his 18th goal for Montreal, which went into the All-Star break on a 2-0-1 run, capped by a 7-2 win last Wednesday over NHL-leading Detroit.

Price stopped 37 shots.