]> www.vanbest.org Git - sasc-ng.git/commitdiff
cardclient-cccam2: reply to all cmd 05
authorleslie <unknown>
Mon, 15 Feb 2010 17:30:55 +0000 (18:30 +0100)
committerleslie <unknown>
Mon, 15 Feb 2010 17:30:55 +0000 (18:30 +0100)
systems/cardclient/cccam2.c

index 078158b22df056fe31e9ffa0804e4181feeb5962..5629007f87ebf82cb1e1c2ff4b9818b38ef7dba3 100644 (file)
@@ -644,14 +644,14 @@ void cCardClientCCcam2::PacketAnalyzer(const struct CmdHeader *hdr, int length)
         {
         PRINTF(L_CC_CCCAM2,"got CMD 05 (payload length=%d)",plen);
         if(plen>0) {
-          static const struct CmdHeader resp = { 0,5,0 };
           LDUMP(L_CC_CCCAM2DT,((struct GenericCmd *)hdr)->payload,plen,"CMD 05 payload");
-          if(!CryptSend((unsigned char *)&resp,sizeof(resp)))
-            PRINTF(L_CC_CCCAM2,"failed to send cmd 05 response");
           keymaskpos=60;
           }
         else
           keymaskpos=0;
+        static const struct CmdHeader resp = { 0,5,0 };
+        if(!CryptSend((unsigned char *)&resp,sizeof(resp)))
+          PRINTF(L_CC_CCCAM2,"failed to send cmd 05 response");
         break;
         }
       case 6: