mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
fix crash when linux is bt server: if no addr provided it's not a duplicate.
This commit is contained in:
parent
e90db9776f
commit
924fa5c12b
1 changed files with 21 additions and 22 deletions
|
@ -841,11 +841,9 @@ static XP_Bool
|
|||
addressUnknown( CommsCtxt* comms, const CommsAddrRec* addr )
|
||||
{
|
||||
XP_Bool unknown = XP_TRUE;
|
||||
AddressRecord* rec;
|
||||
if ( !!addr ) {
|
||||
CommsConnType conType = addr->conType;
|
||||
|
||||
XP_ASSERT( !!addr || comms->addr.conType == COMMS_CONN_IR );
|
||||
|
||||
const AddressRecord* rec;
|
||||
for ( rec = comms->recs; !!rec && unknown ; rec = rec->next ) {
|
||||
XP_ASSERT( conType == rec->addr.conType );
|
||||
switch( conType ) {
|
||||
|
@ -866,6 +864,7 @@ addressUnknown( CommsCtxt* comms, const CommsAddrRec* addr )
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return unknown;
|
||||
} /* addressUnknown */
|
||||
|
|
Loading…
Reference in a new issue