Skip to content

Commit

Permalink
Fix ParseMAC bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AndBobsYourUncle authored and deadprogram committed Apr 19, 2022
1 parent 96a2be1 commit 7dee8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mac.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func ParseMAC(s string) (mac MAC, err error) {
}
macIndex--
}
if macIndex != 0 {
if macIndex != -1 {
err = errInvalidMAC
}
return
Expand Down

0 comments on commit 7dee8d4

Please sign in to comment.