(trunk libT) maybe fix that blocklist crash John_Clay reports about once a month

This commit is contained in:
Charles Kerr 2009-12-14 18:47:45 +00:00
parent 0601442f58
commit e7baa2b480
1 changed files with 2 additions and 1 deletions

View File

@ -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 );