unmarshal allocation bugfix

This commit is contained in:
ycc 2022-12-15 22:34:59 +01:00
parent 5af01add64
commit 650782673d

View File

@ -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