From 650782673d8e2eb704e178e7a7dc65cae0ccb621 Mon Sep 17 00:00:00 2001 From: ycc Date: Thu, 15 Dec 2022 22:34:59 +0100 Subject: [PATCH] unmarshal allocation bugfix --- client/message.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/message.go b/client/message.go index 488d888..d070d7f 100644 --- a/client/message.go +++ b/client/message.go @@ -44,8 +44,8 @@ func ProcessOutboundTextMessage(peer *Peer, text string, srv *InternalServer) ([ return protoPackedServerMsg, nil } -func ProcessServerResponse(srv *InternalServer, msg []byte) (fsmsg *meowlib.FromServerMessage, err error) { - +func ProcessServerResponse(srv *InternalServer, msg []byte) (*meowlib.FromServerMessage, error) { + fsmsg := &meowlib.FromServerMessage{} payload, signature, err := srv.UnPackServerMessage(msg) if err != nil { return nil, err