criat: Fix receive error code path.
setres: Fix output in non-xiat mode.