Changeset 9957
- Timestamp:
- 10/25/14 21:40:41 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r9949 r9957 321 321 } 322 322 return srvid; 323 } 324 325 uint32_t has_perm_blocked_sid(struct cc_card *card) 326 { 327 LL_ITER it = ll_iter_create(card->badsids); 328 struct cc_srvid_block *srvid; 329 while((srvid = ll_iter_next(&it))) 330 { 331 if(srvid->blocked_till == 0) 332 { 333 break; 334 } 335 } 336 return srvid != NULL; 323 337 } 324 338 … … 1268 1282 int32_t goodSidCount = ll_count(ncard->goodsids); 1269 1283 int32_t badSidCount = ll_count(ncard->badsids); 1284 int32_t hasPermBadSid = has_perm_blocked_sid(ncard); 1270 1285 1271 // only bad sids -> reject all1272 if(!goodSidCount && badSidCount)1286 // only permanent bad sids -> reject all 1287 if(!goodSidCount && hasPermBadSid) 1273 1288 { 1274 1289 continue;
Note:
See TracChangeset
for help on using the changeset viewer.