Changeset 5340 for trunk/oscam-reader.c
- Timestamp:
- 05/31/11 20:24:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-reader.c
r5309 r5340 42 42 ECM_REQUEST *ecm; 43 43 struct s_client *cl = reader->client; 44 45 if(!cl) return; 44 46 45 47 for (i=0; i<CS_MAXPENDING; i++) … … 80 82 struct s_client *cl = reader->client; 81 83 82 if (!cl ->pfd) return(-1);84 if (!cl || !cl->pfd) return(-1); 83 85 84 86 if (!reader->ph.recv) { … … 106 108 int32_t result = 0; 107 109 struct s_client *cl = rdr->client; 110 111 if(!cl) return 0; 108 112 109 113 while (cs_trylock(&gethostbyname_lock)) { … … 293 297 uint32_t provid; 294 298 struct s_client *cl = reader->client; 299 300 if(!cl) return; 295 301 296 302 idx=reader->ph.c_recv_log(&caid, &provid, &srvid); … … 317 323 uchar buf[1024]; 318 324 uchar dcw[16]; 319 struct s_client *cl = reader->client; 325 struct s_client *cl = reader->client; 326 327 if(!cl) return; 320 328 321 329 if ((n=casc_recv_timer(reader, buf, sizeof(buf), w))<=0) … … 357 365 struct timeb tps, tpe; 358 366 struct s_client *cl = reader->client; 367 if(!cl) return; 359 368 tpe=cl->ecmtask[n].tps; 360 369 //tpe.millitm+=1500; // TODO: timeout of 1500 should be config … … 381 390 time_t t;//, tls; 382 391 struct s_client *cl = reader->client; 392 393 if(!cl) return -1; 383 394 384 395 uchar buf[512]; … … 502 513 { 503 514 struct s_client *cl = reader->client; 515 if(!cl) return; 504 516 cl->last_srvid=er->srvid; 505 517 cl->last_caid=er->caid; … … 569 581 struct timeb tps, tpe; 570 582 struct s_client *cl = reader->client; 583 584 if(!cl) return 0; 571 585 572 586 cs_ftime(&tps); … … 810 824 { 811 825 struct s_reader * reader = (struct s_reader *) rdr; 812 struct s_client * client = reader->client; 826 struct s_client * client = reader->client; 827 if(!client) cs_exit(1); 813 828 #ifndef NO_PTHREAD_CLEANUP_PUSH 814 829 pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.