Make rpc_read() match the control flow normally used in Samba