From 7dee8d4d827983ae4d5d0adf47debdcce68887c4 Mon Sep 17 00:00:00 2001 From: Nicholas Page Date: Mon, 13 Dec 2021 14:23:01 -0800 Subject: [PATCH] Fix ParseMAC bug --- mac.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac.go b/mac.go index 4a2d35ae..f4286707 100644 --- a/mac.go +++ b/mac.go @@ -36,7 +36,7 @@ func ParseMAC(s string) (mac MAC, err error) { } macIndex-- } - if macIndex != 0 { + if macIndex != -1 { err = errInvalidMAC } return