mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
(trunk libT) prevent crash on shutdown when bindinfo ptr can be NULL
This commit is contained in:
parent
c48528faf1
commit
fde6b36e57
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ tr_sessionGetPublicAddress( const tr_session * session, int tr_af_type, tr_bool
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( is_default_value != NULL )
|
if( is_default_value && bindinfo )
|
||||||
*is_default_value = !tr_strcmp0( default_value, tr_ntop_non_ts( &bindinfo->addr ) );
|
*is_default_value = !tr_strcmp0( default_value, tr_ntop_non_ts( &bindinfo->addr ) );
|
||||||
|
|
||||||
return bindinfo ? &bindinfo->addr : NULL;
|
return bindinfo ? &bindinfo->addr : NULL;
|
||||||
|
|
Loading…
Reference in a new issue