Fix ParseMAC bug
This commit is contained in:
parent
96a2be1571
commit
7dee8d4d82
1 changed files with 1 additions and 1 deletions
2
mac.go
2
mac.go
|
@ -36,7 +36,7 @@ func ParseMAC(s string) (mac MAC, err error) {
|
||||||
}
|
}
|
||||||
macIndex--
|
macIndex--
|
||||||
}
|
}
|
||||||
if macIndex != 0 {
|
if macIndex != -1 {
|
||||||
err = errInvalidMAC
|
err = errInvalidMAC
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue