From fae12f9a3dbd2bd8161590d20294883149fcbe6c Mon Sep 17 00:00:00 2001 From: Daniel Czerwonk <daniel@dan-nrw.de> Date: Mon, 2 Jul 2018 20:46:21 +0200 Subject: [PATCH] fixed typo --- protocols/bgp/packet/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/bgp/packet/helper.go b/protocols/bgp/packet/helper.go index a4a0226b..991af5a5 100644 --- a/protocols/bgp/packet/helper.go +++ b/protocols/bgp/packet/helper.go @@ -25,7 +25,7 @@ func deserializePrefix(b []byte, pfxLen uint8, afi uint16) (bnet.Prefix, error) numBytes := numberOfBytesForPrefixLength(pfxLen) if numBytes != uint8(len(b)) { - return bnet.Prefix{}, fmt.Errorf("could not parse prefix of legth %d. Expected %d bytes, got %d", pfxLen, numBytes, len(b)) + return bnet.Prefix{}, fmt.Errorf("could not parse prefix of length %d. Expected %d bytes, got %d", pfxLen, numBytes, len(b)) } ipBytes := make([]byte, afiAddrLenBytes[afi]) -- GitLab