Fix ParseMAC bug

This commit is contained in:
Nicholas Page 2021-12-13 14:23:01 -08:00 committed by Ron Evans
parent 96a2be1571
commit 7dee8d4d82

2
mac.go
View File

@ -36,7 +36,7 @@ func ParseMAC(s string) (mac MAC, err error) {
}
macIndex--
}
if macIndex != 0 {
if macIndex != -1 {
err = errInvalidMAC
}
return