From 413871a8977c37f16a6265052abbb1bd62c7e185 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Mon, 8 May 2017 18:07:11 -0500 Subject: [PATCH] Fix Bind Decode to advance rp --- pgproto3/bind.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pgproto3/bind.go b/pgproto3/bind.go index 6661a775..cbd71e13 100644 --- a/pgproto3/bind.go +++ b/pgproto3/bind.go @@ -52,6 +52,7 @@ func (dst *Bind) Decode(src []byte) error { return &invalidMessageFormatErr{messageType: "Bind"} } parameterCount := int(binary.BigEndian.Uint16(src[rp:])) + rp += 2 dst.Parameters = make([][]byte, parameterCount)