Changeset 8468
- Timestamp:
- 03/03/13 21:12:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-ird-guess.c
r8467 r8468 13 13 }; 14 14 15 static struct s_irdeto_quess * itab[0xff];15 static struct s_irdeto_quess **itab; 16 16 17 17 int32_t init_irdeto_guess_tab(void) … … 28 28 uint16_t caid, sid; 29 29 struct s_irdeto_quess *ird_row, *head; 30 31 if (!cs_malloc(&itab, sizeof(struct s_irdeto_quess *) * 0xff)) { 32 fclose(fp); 33 return 0; 34 } 30 35 31 36 while (fgets(token, sizeof(token), fp)) … … 91 96 { 92 97 uint8_t i; 98 if (!itab) 99 return; 93 100 for (i = 0; i < 0xff; i++) 94 101 { … … 101 108 } 102 109 } 110 free(itab); 103 111 } 104 112 … … 110 118 struct s_irdeto_quess *ptr; 111 119 120 if (!itab) 121 return; 112 122 b3 = er->ecm[3]; 113 123 ptr = itab[b3];
Note:
See TracChangeset
for help on using the changeset viewer.