Only generate embedded LCs when they're the correct type.
This commit is contained in:
parent
78e1abfcca
commit
8d81f1c636
|
@ -250,7 +250,17 @@ CDMRLC* CDMREmbeddedLC::processMultiBlockEmbeddedLC()
|
|||
if (!CCRC::checkFiveBit(lcData, crc))
|
||||
return NULL;
|
||||
|
||||
return new CDMRLC(lcData);
|
||||
CDMRLC* lc = new CDMRLC(lcData);
|
||||
|
||||
// Only generate the LC when it's the correct FLCO
|
||||
switch (lc->getFLCO()) {
|
||||
case FLCO_GROUP:
|
||||
case FLCO_USER_USER:
|
||||
return lc;
|
||||
default:
|
||||
delete lc;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
// Deal with a single block embedded LC
|
||||
|
|
Loading…
Reference in a new issue