fixed a bug

This commit is contained in:
MSharq 2018-10-29 15:44:53 +01:00
parent 2bc581d4f6
commit 242e8af3a7
1 changed files with 3 additions and 2 deletions

View File

@ -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");