mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
Backend: Attempt fixing argument leak when RPC is called without arguments.
This commit is contained in:
parent
e1522456b4
commit
231e2839e8
1 changed files with 1 additions and 0 deletions
|
@ -528,6 +528,7 @@ func UnmarshalClientMessage(data []byte, payloadType int, v interface{}) (err er
|
||||||
if spaceIdx == -1 {
|
if spaceIdx == -1 {
|
||||||
out.Command = CommandPool.InternCommand(dataStr)
|
out.Command = CommandPool.InternCommand(dataStr)
|
||||||
out.Arguments = nil
|
out.Arguments = nil
|
||||||
|
out.origArguments = ""
|
||||||
return nil
|
return nil
|
||||||
} else {
|
} else {
|
||||||
out.Command = CommandPool.InternCommand(dataStr[:spaceIdx])
|
out.Command = CommandPool.InternCommand(dataStr[:spaceIdx])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue