rilmodem: fix call_barring_query_cb

The return value from a RIL_REQUEST_GET_FACILITY_LOCK
is the TS 27.007 service class bit vector of services
for the specified barring facility.  The value canf be
zero, which indicates "disabled for all".
This commit is contained in:
Tony Espy 2015-12-15 11:34:34 -05:00 committed by Denis Kenzior
parent 96b4f76205
commit 4cc0bc4d11
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ static void ril_call_barring_query_cb(struct ril_msg *message,
bearer_class = parcel_r_int32(&rilp);
if (bearer_class < 1 || rilp.malformed)
if (bearer_class < 0 || rilp.malformed)
goto error;
g_ril_append_print_buf(bd->ril, "{%d}", bearer_class);