From 5124b78659c50243cecb46bf2903f9acd495840a Mon Sep 17 00:00:00 2001 From: Manu Abraham Date: Wed, 21 Sep 2005 15:36:13 +0000 Subject: ASN.1 length field Fix Signed-off-by: Raymond Mantchala Signed-off-by: Manu Abraham --- linux/drivers/media/dvb/bt8xx/dst_ca.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux/drivers/media/dvb/bt8xx/dst_ca.c b/linux/drivers/media/dvb/bt8xx/dst_ca.c index ecab02c96..667358891 100644 --- a/linux/drivers/media/dvb/bt8xx/dst_ca.c +++ b/linux/drivers/media/dvb/bt8xx/dst_ca.c @@ -329,7 +329,8 @@ u32 asn_1_decode(u8 *asn_1_array) } else { word_count = length_field & 0x7f; for (count = 0; count < word_count; count++) { - length = (length | asn_1_array[count + 1]) << 8; + length = length << 8; + length += asn_1_array[count + 1]; dprintk(verbose, DST_CA_DEBUG, 1, " Length=[%04x]", length); } } -- cgit v1.2.3