summaryrefslogtreecommitdiff
blob: ed0494dd3991941b3c61c15c9093b8d8de2d4b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- drivers/media/dvb/dvb-core/dvb_net.c-original	2007-01-27 10:27:13.000000000 +1100
+++ drivers/media/dvb/dvb-core/dvb_net.c	2007-01-27 10:27:55.000000000 +1100
@@ -492,7 +492,7 @@
 				} else
 					priv->ule_dbit = 0;
 
-				if (priv->ule_sndu_len > 32763) {
+				if (priv->ule_sndu_len > 32763 || priv->ule_sndu_len < ((priv->ule_dbit) ? 4 : 4 + ETH_ALEN)) {
 					printk(KERN_WARNING "%lu: Invalid ULE SNDU length %u. "
 					       "Resyncing.\n", priv->ts_count, priv->ule_sndu_len);
 					priv->ule_sndu_len = 0;