Verbally replying to a Salaam during prayer invalidates the prayer.

Invalidators of Prayer, Part 1: Items 1–24