- Timestamp:
- 01/21/17 23:27:54 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-ecm.c
r11344 r11347 539 539 void cleanup_ecmtasks(struct s_client *cl) 540 540 { 541 if( (cl) && (!cl->account->usr)) { return; } //not for anonymous users!541 if(!cl) { return; } 542 542 543 543 ECM_REQUEST *ecm; … … 545 545 //remove this clients ecm from queue. because of cache, just null the client: 546 546 cs_readlock(__func__, &ecmcache_lock); 547 for(ecm = ecmcwcache; ecm ; ecm = ecm->next)547 for(ecm = ecmcwcache; ecm && cl; ecm = ecm->next) 548 548 { 549 549 if(ecm->client == cl) … … 562 562 { 563 563 int i; 564 for(i = 0; i < cfg.max_pending; i++)564 for(i = 0; (i < cfg.max_pending) && cl; i++) 565 565 { 566 566 ecm = &rdr->client->ecmtask[i]; … … 1692 1692 { 1693 1693 //cache update 1694 if(ea && (ea->rc < E_NOTFOUND) && ( ea->cw))1694 if(ea && (ea->rc < E_NOTFOUND) && (!chk_is_null_CW(ea->cw))) 1695 1695 add_cache_from_reader(er, reader, er->csp_hash, er->ecmd5, ea->cw, er->caid, er->prid, er->srvid ); 1696 1696
Note:
See TracChangeset
for help on using the changeset viewer.