ITS#9444 Pass remote message when appropriate

Also fix a memory leak in chain.c.

Merge request reports

Loading