mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +00:00
(trunk libT) maybe fix that blocklist crash John_Clay reports about once a month
This commit is contained in:
parent
0601442f58
commit
e7baa2b480
1 changed files with 2 additions and 1 deletions
|
@ -212,7 +212,8 @@ _tr_blocklistHasAddress( tr_blocklist * b,
|
|||
return 0;
|
||||
|
||||
blocklistEnsureLoaded( b );
|
||||
if( !b->rules )
|
||||
|
||||
if( !b->rules || !b->ruleCount )
|
||||
return 0;
|
||||
|
||||
needle = ntohl( addr->addr.addr4.s_addr );
|
||||
|
|
Loading…
Reference in a new issue