#4566: wz2100-3.2.2: Segmentation fault at start of a multiplayer game on Debian
Stretch
------------------------------------------------+-------------------------
Reporter: Leverator | Owner:
Type: bug | Status: new
Priority: normal | Milestone: unspecified
Component: Engine: Resource Management | Version: 3.2.2
Operating System: GNU/Linux 64bit |
------------------------------------------------+-------------------------
Hello,
I just compiled warzone2100-3.2.2 on Debian Stretch and was not able to
start a network game.
Every time when I clicked to start the match, the game freezed.
After digging around, I found the problem.
Here's the diff of crc.cpp:
Leverator@calculus:~/Development$ diff
/tmp/warzone2100-3.2.2/lib/framework/crc.cpp
warzone2100-3.2.2/lib/framework/crc.cpp
259c259,264
< vKey = (void *)EC_KEY_dup((EC_KEY *)b.vKey);
---
> if ( b.vKey != nullptr )
> {
> vKey = (void *)EC_KEY_dup((EC_KEY *)b.vKey);
> } else {
> vKey = nullptr;
> }
276c281,287
< vKey = (void *)EC_KEY_dup((EC_KEY *)b.vKey);
---
> if ( b.vKey != nullptr )
> {
> vKey = (void *)EC_KEY_dup((EC_KEY *)b.vKey);
> } else {
> vKey = nullptr;
> }
>
Now it is fun to play.
Best whishes from germany,
Leverator
--
Ticket URL: <http://developer.wz2100.net/ticket/4566>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project