Fix wrong condition name in rbuf_read.