<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39842 >

Good daytime!

branches/s2_1, r13919

Start a game, say 'read civ2.serv' while game is already started and see
gui-gtk segfault... Say 'quit' and see segfault of civserver...

Reason: nations are already freed when nation_of_player() is called.
And both nation_of_player() and bounds_check_nation() don't check for
nation is NULL.

Questions:
1. Why 'rulesetdir' isn't disallowed in already started game?
2. How to fix usage of nation_of_player()? [ie, what way is better?]
3. Is there a reason not to have a check in bounds_check_nation()?

-- 
Thanks, evyscr



_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to