From 830e30e2fb08e11a9c205ad7a664bdd32456d0e8 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 27 Mar 2017 14:02:54 +0200 Subject: [PATCH] Only store ChannelCamRelations for receivers with valid channel ids --- device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/device.c b/device.c index ccd0e20a..247e8c56 100644 --- a/device.c +++ b/device.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 4.10 2017/03/26 11:35:38 kls Exp $ + * $Id: device.c 4.11 2017/03/27 14:02:54 kls Exp $ */ #include "device.h" @@ -1692,7 +1692,7 @@ void cDevice::Action(void) } else receiver[i]->Receive(b, TS_SIZE); - if (DescramblingOk) { + if (DescramblingOk && receiver[i]->ChannelID().Valid()) { dsyslog("CAM %d: decrypts channel %s", CamSlotNumber, *receiver[i]->ChannelID().ToString()); ChannelCamRelations.SetDecrypt(receiver[i]->ChannelID(), CamSlotNumber); startScrambleDetection = 0;