summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBertrand Aygon <bertrand.aygon@intel.com>2011-03-16 10:12:46 +0100
committerDenis Kenzior <denkenz@gmail.com>2011-03-16 21:29:20 -0500
commit7617680d0d9bbd66f936b3f1eae6af8c56616cab (patch)
tree7ed36dd2ef6bfdfc6e5211a573d5db747ee59fa9 /drivers
parentc8b5143a03a4abe9e632610883ea853e7f222a7e (diff)
downloadofono-7617680d0d9bbd66f936b3f1eae6af8c56616cab.tar.bz2
cbs: ignore any CBMs without a proper size
Cell Broadcasts are always fixed size, so improve PDU length check
Diffstat (limited to 'drivers')
-rw-r--r--drivers/atmodem/cbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atmodem/cbs.c b/drivers/atmodem/cbs.c
index 8cc3ef01..e2e1ca4a 100644
--- a/drivers/atmodem/cbs.c
+++ b/drivers/atmodem/cbs.c
@@ -68,8 +68,8 @@ static void at_cbm_notify(GAtResult *result, gpointer user_data)
if (!g_at_result_iter_next_number(&iter, &pdulen))
return;
- if (pdulen > 88) {
- ofono_error("Got a CBM message bigger than maximum size!");
+ if (pdulen != 88) {
+ ofono_error("Got a CBM message with invalid PDU size!");
return;
}