Skip to content

Commit 7dee8d4

Browse files
AndBobsYourUncledeadprogram
authored andcommitted
Fix ParseMAC bug
1 parent 96a2be1 commit 7dee8d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mac.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func ParseMAC(s string) (mac MAC, err error) {
3636
}
3737
macIndex--
3838
}
39-
if macIndex != 0 {
39+
if macIndex != -1 {
4040
err = errInvalidMAC
4141
}
4242
return

0 commit comments

Comments
 (0)