1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-28 15:27:43 +00:00

Backend: Attempt fixing argument leak when RPC is called without arguments.

This commit is contained in:
SirStendec 2017-09-17 14:40:39 -04:00
parent e1522456b4
commit 231e2839e8

View file

@ -528,6 +528,7 @@ func UnmarshalClientMessage(data []byte, payloadType int, v interface{}) (err er
if spaceIdx == -1 {
out.Command = CommandPool.InternCommand(dataStr)
out.Arguments = nil
out.origArguments = ""
return nil
} else {
out.Command = CommandPool.InternCommand(dataStr[:spaceIdx])