client/state: Fix copying of packet data from deque to string
This commit is contained in:
parent
17fb1254fc
commit
3db0f36cbe
@ -104,7 +104,7 @@ struct CState: public State
|
||||
return;
|
||||
log_i(MODULE, "Received full packet; type=%zu, length=6+%zu",
|
||||
type, size);
|
||||
ss_ data(&m_socket_buffer[6], size);
|
||||
ss_ data(m_socket_buffer.begin() + 6, m_socket_buffer.begin() + 6 + size);
|
||||
m_socket_buffer.erase(m_socket_buffer.begin(),
|
||||
m_socket_buffer.begin() + 6 + size);
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user