From 93bf08f750a3d52b19c799a4ed0b9fd1e680d3f1 Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Wed, 10 Oct 2012 10:05:51 -0700 Subject: [PATCH] callerid: fix parser - do not store noise bytes --- src/databits_callerid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/databits_callerid.c b/src/databits_callerid.c index cfcc353..b1459ec 100644 --- a/src/databits_callerid.c +++ b/src/databits_callerid.c @@ -137,6 +137,8 @@ databits_decode_callerid( char *dataout_p, unsigned int dataout_size, cid_msgtype = CID_MSG_MDMF; else if ( bits == CID_MSG_SDMF ) cid_msgtype = CID_MSG_SDMF; + else + return 0; cid_buf[cid_ndata++] = bits; return 0; }