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