Fixed compile error

This commit is contained in:
Dennis Schwerdel 2016-07-03 11:59:06 +02:00
parent 885b288025
commit 4e047b6065
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ impl<P: Protocol> GenericCloud<P> {
}
},
fd if (fd == device_fd) => {
let start = 64;
let mut start = 64;
let (offset, size) = try_fail!(self.device.read(&mut buffer[start..]), "Failed to read from tap device: {}");
start += offset;
if let Err(e) = self.handle_interface_data(&mut buffer, start, start+size) {