diff --git a/lib/middleware/middlewares/eqp/creator.go b/lib/middleware/middlewares/eqp/creator.go index fa92e44603ab63d530f1f364ca4aab622f110d4c..b10b72df3fbdffc7efff785c800e24eea47e8684 100644 --- a/lib/middleware/middlewares/eqp/creator.go +++ b/lib/middleware/middlewares/eqp/creator.go @@ -45,7 +45,7 @@ func (T Creator) Read() (packet.In, error) { // send parse complete out := T.inner.Write() out.Type(packet.ParseComplete) - err = out.Send() + err = T.inner.Send(out.Finish()) if err != nil { return packet.In{}, err } @@ -64,7 +64,7 @@ func (T Creator) Read() (packet.In, error) { // send bind complete out := T.inner.Write() out.Type(packet.BindComplete) - err = out.Send() + err = T.inner.Send(out.Finish()) if err != nil { return packet.In{}, err }