From: leslie Date: Wed, 5 Aug 2009 08:55:53 +0000 (+0800) Subject: cardclient-cccam2: fix handling of cmd 0 X-Git-Tag: upstream/620~222 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=e0b4cf0e10ecb4c2d9f93f0bd868816116b49a51;p=sasc-ng.git cardclient-cccam2: fix handling of cmd 0 --- diff --git a/systems/cardclient/cccam2.c b/systems/cardclient/cccam2.c index 55bd648..cc89e03 100644 --- a/systems/cardclient/cccam2.c +++ b/systems/cardclient/cccam2.c @@ -371,8 +371,10 @@ cCardClientCCcam2::~cCardClientCCcam2() void cCardClientCCcam2::PacketAnalyzer(const unsigned char *data, int length) { int cmdlen=UINT16_BE(&data[2]); - if(cmdlen>0 && cmdlen+4<=length) { + if(cmdlen+4<=length) { switch(data[1]) { + case 0: + break; case 1: { PRINTF(L_CC_CCCAM2,"got CW, current shareid %08x",shareid);