Fix passing incorrect attrs slice to WireWrite

This commit is contained in:
Laurence Withers 2024-04-05 13:44:49 +01:00
parent c579349c05
commit 596691457a
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ func (c *Conn) EntryErr(pri Priority, msg string, attrs []Attr) error {
})
a = append(a, c.Common...)
a = append(a, attrs...)
err := c.WriteAttrs(attrs)
err := c.WriteAttrs(a)
slices.Delete(a, 0, len(a)) // ensure GC doesn't see refs to old data
c.atts.Put(a)
return err