Minor fixes

This commit is contained in:
ddirect
2025-12-28 18:30:47 +02:00
parent 48847af1e4
commit b9fbe0d25d
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ func (h *Handler) Demux(ethFrame []byte, frameOffset int) error {
}
func trySetEthernetDst(ethFrame []byte, dst []byte) {
if len(ethFrame) > 14 {
if len(ethFrame) >= 14 {
copy(ethFrame[:6], dst)
}
}