diff --git a/protocols/bgp/packet/helper.go b/protocols/bgp/packet/helper.go
index a4a0226b767888da16043003a294ffa66aabd8f8..991af5a5eb9410c6875400c3b88ed3ee2e7c8de4 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])