[wesnoth-commits] [wesnoth/wesnoth] b567f6: wesnothd: avoid invalid iterator use when terminat...

Sergey Popov noreply at github.com
Fri Jul 16 14:55:47 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b567f6b8091db918be9501e6999d6e79f4d84ee9
      https://github.com/wesnoth/wesnoth/commit/b567f6b8091db918be9501e6999d6e79f4d84ee9
  Author: loonycyborg <loonycyborg at gmail.com>
  Date:   2021-07-16 (Fri, 16 Jul 2021)

  Changed paths:
    M src/server/wesnothd/game.cpp

  Log Message:
  -----------
  wesnothd: avoid invalid iterator use when terminating game

Set game::owner_ to past-the-end iterator when game is being destroyed
to avoid comparison with invalid iterator when remove_player() is called
for other players after game host has disconnected making game::owner_
invalid.





More information about the Commits mailing list