id summary reporter owner description type status priority component severity resolution keywords cc sensitive 304 module-cccam.c: reconnect to server: wrong password (fix added) speedfrog cogsi "If the CCcam remote reader died, the oscam reconnects, but at this moment the password to that connection was already encrypted. In cc_cli_connect() the reader[ridx].r_pwd get's encrypted again resulting in a wrong password on the CCcam server. Below is a patch to module-cccam.c to solve this issue. ---- Still not found out, why at the 2nd command after reconnect the CCcam server disconnects with a {{{ CCcam: deleting client 172.20.1.254(oscam), bad command }}} So it seems, that after a reconnect, the module-cccam send a bad command, but I'm still searching for that... reconnect after CCcam server gone down {{{ 2010/01/05 10:17:55 26176 p02 cccam: proxy 172.20.1.200:12000 cccam v (), maxhop = 10 (fd=3, ridx=0) 2010/01/05 10:17:55 26176 p02 cccam: conn_nb 1 (fd=3) 2010/01/05 10:17:55 26176 p02 cccam: conn_nb 2 (fd=3) 2010/01/05 10:17:55 26176 p02 cccam: n = -1 2010/01/05 10:17:55 26176 p02 cccam: conn_nb 5 (fd=3) 2010/01/05 10:17:55 26176 p02 cccam: conn_nb 6 (fd=3) 2010/01/05 10:17:55 26176 p02 cccam: conn_nb 9 (fd=3) 2010/01/05 10:17:55 26176 p02 cccam: server init seed: 2010/01/05 10:17:55 26176 p02 cccam: sha1 hash: 2010/01/05 10:17:55 26176 p02 cccam: send: 2010/01/05 10:17:55 26176 p02 cccam: username 'oscam': 2010/01/05 10:17:55 26176 p02 cccam: send: }}} now logging in again with the password not encrypted before {{{ 2010/01/05 10:17:55 26176 p02 cccam: 'CCcam' xor StdPwd 2010/01/05 10:17:55 26176 p02 cccam: send: 2010/01/05 10:17:55 26176 p02 cccam: pwd ack received: 2010/01/05 10:17:55 26176 p02 cccam: login succeeded 2010/01/05 10:17:55 26176 p02 cccam: last_s=1262683075, last_g=1262683075 2010/01/05 10:17:55 26176 p02 cccam: send client data 2010/01/05 10:17:55 26176 p02 cccam: user: oscam, version: , build: 2010/01/05 10:17:55 26176 p02 cccam: send: 2010/01/05 10:17:55 26176 p02 cccam: ecm trylock: got lock 2010/01/05 10:17:55 26176 p02 cccam: ecm crc = 0x9bf6f32a 2010/01/05 10:17:55 26176 p02 cccam: no suitable card on server 2010/01/05 10:17:55 26176 p02 cccam: received 4 bytes from remote server 2010/01/05 10:17:55 26176 p02 cccam: client data ack 2010/01/05 10:17:55 26176 p02 cccam: received 76 bytes from remote server 2010/01/05 10:17:55 26176 p02 cccam: srv AC4E2370AFC305F4 running v2.1.0 (2944) 2010/01/05 10:17:55 26176 p02 cccam: received 4 bytes from remote server }}} So far, everything is right, but at the next command, the CCcam server tells me: {{{ 10:18:16.779 CCcam: deleting client 172.20.1.254(oscam), bad command }}} resulting in a reconnect from the oscam: {{{ 2010/01/05 10:17:55 26176 p02 cccam: proxy 172.20.1.200:12000 cccam v (), maxhop = 10 (fd=3, ridx=0) 2010/01/05 10:17:55 26176 p02 cccam: conn_nb 1 (fd=3) 2010/01/05 10:17:55 26176 p02 cccam: conn_nb 2 (fd=3) }}} ... a.s.o. " defect closed major General medium fixed cccam remote wrong password reconnect 0