mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
fix uninitialized memory getting treated as a mqtt address
augmentAddrIntrnl() sets the has-mqtt bit in comms->addr but not the address data (has none). If that address had been loaded from stream the address bits will be random, not 0, and so get treated as an address.
This commit is contained in:
parent
e5a6f05e92
commit
8095a0da54
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ comms_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream,
|
|||
AddressRecord** prevsAddrNext;
|
||||
MsgQueueElem** prevsQueueNext;
|
||||
XP_U16 version = stream_getVersion( stream );
|
||||
CommsAddrRec addr;
|
||||
CommsAddrRec addr = {0};
|
||||
|
||||
XP_U8 flags = stream_getU8( stream );
|
||||
if ( version < STREAM_VERS_GICREATED ) {
|
||||
|
|
Loading…
Reference in a new issue