From f3c32f638626b9a15a2c94dbea468d4056f4540f Mon Sep 17 00:00:00 2001 From: alterdekim Date: Mon, 9 Dec 2024 02:07:46 +0300 Subject: [PATCH] Another one modified: frida_core/src/linux_tun.rs --- frida_core/src/linux_tun.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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