Changeset 1893
- Timestamp:
- 03/24/10 19:13:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r1874 r1893 1128 1128 if (cc==NULL) { 1129 1129 cs_log("cccam: cannot allocate memory"); 1130 return -1;1130 cs_exit(0); 1131 1131 } 1132 1132 … … 1162 1162 cc_crypt(&cc->block[DECRYPT], buf, 20, DECRYPT); 1163 1163 cs_ddump(buf, 20, "cccam: hash:"); 1164 } else return -1; 1164 } else { 1165 cs_log("cccam:%d: receive failed errno: %d (%s)", __LINE__, errno, strerror(errno)); 1166 cs_exit(0); 1167 } 1165 1168 1166 1169 // receive username … … 1169 1172 cs_ddump(buf, 20, "cccam: username '%s':", buf); 1170 1173 strncpy(usr, (char *)buf, sizeof(usr)); 1171 } else return -1; 1174 } else { 1175 cs_log("cccam:%d: receive username failed errno: %d (%s)", __LINE__, errno, strerror(errno)); 1176 cs_exit(0); 1177 } 1172 1178 1173 1179 for (account=cfg->account; account; account=account->next) … … 1182 1188 cc_crypt(&cc->block[DECRYPT], buf, 6, DECRYPT); 1183 1189 cs_ddump(buf, 6, "cccam: pwd check '%s':", buf); 1184 } else return -1; 1190 } else { 1191 cs_log("cccam:%d: receive passwd failed errno: %d (%s)", __LINE__, errno, strerror(errno)); 1192 cs_exit(0); 1193 } 1185 1194 1186 1195 cs_auth_client(account, NULL); … … 1204 1213 cc_cmd_send(NULL, 0, MSG_CLI_DATA); 1205 1214 1206 if (cc_send_srv_data()<0) return -1; 1215 if (cc_send_srv_data()<0) { 1216 cs_log("cccam:%d: cc_send_srv_data() failed errno: %d (%s)", __LINE__, errno, strerror(errno)); 1217 cs_exit(0); 1218 } 1207 1219 1208 1220 is_server = 1; … … 1244 1256 //cc_auth_client(client[cs_idx].ip); 1245 1257 cc_srv_connect(); 1258 1259 1260 cs_exit(0); 1246 1261 } 1247 1262
Note:
See TracChangeset
for help on using the changeset viewer.