Changeset 8401
- Timestamp:
- 02/21/13 22:08:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-gbox.c
r8400 r8401 165 165 struct s_client *cl; 166 166 for (i = 0, cl = first_client; cl; cl = cl->next, i++) { 167 if ( get_module(cl)->num == R_GBOX) {167 if (cl->gbox) { 168 168 struct s_reader *rdr = cl->reader; 169 169 struct gbox_data *gbox = cl->gbox; … … 179 179 } // end of while ll_iter_next 180 180 } // end of if INSERTED && 'p' 181 } 181 } // end of if cl->gbox 182 182 } // end of for cl->next 183 183 fclose(fhandle); … … 268 268 struct s_client *cl; 269 269 for (cl = first_client; cl; cl = cl->next) { 270 if ( get_module(cl)->num == R_GBOX) {270 if (cl->gbox) { 271 271 hostname2ip(cl->reader->device, &SIN_GET_ADDR(cl->udp_sa)); 272 272 SIN_GET_FAMILY(cl->udp_sa) = AF_INET; … … 654 654 655 655 if (IP_EQUAL(recv_ip, cli->ip) 656 && get_module(cli)->num == R_GBOX&& recv_port == cli->reader->l_port) {656 && cli->gbox && recv_port == cli->reader->l_port) { 657 657 658 658 verify_peer_ip = 1; … … 1156 1156 } 1157 1157 // if rdr = gbox, reshare card 1158 if ( get_module(cl)->num == R_GBOX) {1158 if (cl->gbox) { 1159 1159 struct gbox_data *gbox_1 = cl->gbox; 1160 1160 struct gbox_card *card_g;
Note:
See TracChangeset
for help on using the changeset viewer.