mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 07:53:26 +00:00
Fixed server crash when using invalid iterator for end position
This commit is contained in:
parent
7b101e6b6f
commit
6726b67c74
@ -653,10 +653,10 @@ namespace
|
||||
{
|
||||
|
||||
//! Caller has to make sure to own management_mutex
|
||||
static void remove_buffers(TCPsocket sock)
|
||||
void remove_buffers(TCPsocket sock)
|
||||
{
|
||||
{
|
||||
for(buffer_set::iterator i = bufs.begin(), i_end = bufs.end(); i != i_end;) {
|
||||
for(buffer_set::iterator i = bufs.begin(); i != bufs.end();) {
|
||||
if ((*i)->sock == sock)
|
||||
{
|
||||
buffer* buf = *i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user