- RILD crashes when token is NULL because no NULL check at the beginning
pRI = (RequestInfo *)t;
+ if (!checkAndDequeueRequestInfo(pRI)) {
+ RLOGE ("RIL_onRequestComplete: invalid RIL_Token");
+ return;
+ }
+
socket_id = pRI->socket_id;
#if (SIM_COUNT >= 2)
if (socket_id == RIL_SOCKET_2) {
#endif
RLOGD("RequestComplete, %s", rilSocketIdToString(socket_id));
- if (!checkAndDequeueRequestInfo(pRI)) {
- RLOGE ("RIL_onRequestComplete: invalid RIL_Token");
- return;
- }
-
if (pRI->local > 0) {
// Locally issued command...void only!
// response does not go back up the command socket