1
0
Fork 0
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:
Charles Kerr 2009-12-14 18:47:45 +00:00
parent 0601442f58
commit e7baa2b480

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