Skip to content
Snippets Groups Projects
Unverified Commit 1b0f3df0 authored by Daniel Czerwonk's avatar Daniel Czerwonk Committed by GitHub
Browse files

Update path_attributes.go

simplification
parent 7732db02
No related branches found
No related tags found
No related merge requests found
......@@ -261,8 +261,7 @@ func (pa *PathAttribute) decodeCommunities(buf *bytes.Buffer) error {
return fmt.Errorf("Unable to read next hop: buf.Read read %d bytes", n)
}
v := fourBytesToUint32(c)
coms[i] = v
coms[i] = fourBytesToUint32(c)
}
pa.Value = coms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment