mirror of git://git.sysmocom.de/ofono
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:
parent
96b4f76205
commit
4cc0bc4d11
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue