Hilchos Lashon Hara chapter 6, section 4

Sometimes it is a mitzvah to hear lashon hara talk if one reckons one will be able to show the speaker or other people present that the story was not as reported or alleviate its severity in some other way. It is also a mitzvah to listen if one reckons that by listening one will be able to quiet the speaker’s anger so that he does not repeat the story to others (who may believe it) and this will promulgate peace among Jews. Of course, one must never actually believe the lashon hara.