From 5c2b7038a54169875ba09cb7ea97c9a86295e821 Mon Sep 17 00:00:00 2001 From: Oleg Date: Thu, 21 Mar 2024 16:55:23 +0300 Subject: [PATCH] containsActionCompletedCode should get the whole buffer, not just last chunk --- bird_socket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bird_socket.go b/bird_socket.go index 26852b6..fa9703e 100644 --- a/bird_socket.go +++ b/bird_socket.go @@ -111,7 +111,7 @@ func (s *BirdSocket) readFromSocket(conn net.Conn) ([]byte, error) { } b = append(b, buf[:n]...) - done = containsActionCompletedCode(buf[:n]) + done = containsActionCompletedCode(b) } return b, nil