From d141e98d9970789fdcd826ccafe169492991a578 Mon Sep 17 00:00:00 2001
From: Daniel Czerwonk <czerwonk@users.noreply.github.com>
Date: Mon, 21 May 2018 20:14:17 +0200
Subject: [PATCH] Update path_attributes.go

fixed copy paste error
---
 protocols/bgp/packet/path_attributes.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protocols/bgp/packet/path_attributes.go b/protocols/bgp/packet/path_attributes.go
index e20fc486..3d9e2a08 100644
--- a/protocols/bgp/packet/path_attributes.go
+++ b/protocols/bgp/packet/path_attributes.go
@@ -603,7 +603,7 @@ func read4BytesAsUin32(buf *bytes.Buffer) (uint32, error) {
 		return 0, err
 	}
 	if n != 4 {
-		return 0, fmt.Errorf("Unable to read next hop: buf.Read read %d bytes", n)
+		return 0, fmt.Errorf("Unable to read as uint32: buf.Read read %d bytes", n)
 	}
 
 	return fourBytesToUint32(b), nil
-- 
GitLab