summaryrefslogtreecommitdiff
path: root/ci.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-04-15 09:39:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-04-15 09:39:55 +0200
commit1a160e7afeddd6a2479a40ee6110477093942707 (patch)
tree757f2ac9c91c8399c7f652ce37a70fbd8ebde495 /ci.c
parent016e10c1b0d20b8c73b593afcaf492219b5a0064 (diff)
downloadvdr-1a160e7afeddd6a2479a40ee6110477093942707.tar.gz
vdr-1a160e7afeddd6a2479a40ee6110477093942707.tar.bz2
The function cCamSlot::Decrypt() can now also be called with Data == NULL
Diffstat (limited to 'ci.c')
-rw-r--r--ci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ci.c b/ci.c
index db2f1404..d3244e54 100644
--- a/ci.c
+++ b/ci.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ci.c 4.10 2017/04/02 10:02:13 kls Exp $
+ * $Id: ci.c 4.11 2017/04/11 16:45:55 kls Exp $
*/
#include "ci.h"
@@ -2415,7 +2415,8 @@ bool cCamSlot::IsDecrypting(void)
uchar *cCamSlot::Decrypt(uchar *Data, int &Count)
{
- Count = TS_SIZE;
+ if (Data)
+ Count = TS_SIZE;
return Data;
}