fix potential early return in ircio_read