From 242e8af3a7c96895af52f5da83870dce4d4a4201 Mon Sep 17 00:00:00 2001 From: MSharq Date: Mon, 29 Oct 2018 15:44:53 +0100 Subject: [PATCH] fixed a bug --- BasiliskII/src/Unix/ether_unix.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BasiliskII/src/Unix/ether_unix.cpp b/BasiliskII/src/Unix/ether_unix.cpp index ec71ebc7..aff82e4e 100644 --- a/BasiliskII/src/Unix/ether_unix.cpp +++ b/BasiliskII/src/Unix/ether_unix.cpp @@ -1004,9 +1004,10 @@ void ether_do_interrupt(void) #else length = read(fd, Mac2HostAddr(packet), 1514); #endif - if (length < 14) - break; } + + if (length < 14) + break; #if MONITOR bug("Receiving Ethernet packet:\n");