callerid: fix MDMF decode when 0x08 (Name N/A) field is encountered

Off-by-one comparison caused any MDMF packet with an 0x08 field to
get junked.
This commit is contained in:
Billseph Gamesh 2014-11-08 08:23:57 -08:00 committed by Kamal Mostafa
parent a126663220
commit 2a37e24964
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ decode_mdmf_callerid( char *dataout_p, unsigned int dataout_size )
while ( cid_i < cid_msglen ) {
unsigned int cid_datatype = *m++;
if ( cid_datatype >= CID_DATA_NAME_NA ) {
if ( cid_datatype > CID_DATA_NAME_NA ) {
// FIXME: bad datastream -- print something here
return 0;
}