diff --git a/frida_core/src/linux_tun.rs b/frida_core/src/linux_tun.rs index ffbcb03..a58ac43 100644 --- a/frida_core/src/linux_tun.rs +++ b/frida_core/src/linux_tun.rs @@ -32,12 +32,14 @@ pub struct DeviceReader { impl DeviceWriter { pub async fn write(&self, buf: &Vec) -> Result> { - self.writer.send_all(buf).await + self.writer.send_all(buf).await?; + Ok(0) } } impl DeviceReader { pub async fn read(&self, buf: &mut Vec) -> Result> { - self.reader.recv(buf).await + let n = self.reader.recv(buf).await?; + Ok(n) } } \ No newline at end of file