Loading ril/libril/ril_service.cpp +26 −0 Original line number Diff line number Diff line Loading @@ -2413,6 +2413,19 @@ Return<void> RadioImpl::setDataProfile(int32_t serial, const hidl_vec<DataProfil success = false; } // FIXUP: at least the libsec-ril on zero can't handle user and password // being passed as NULL-pointers. Copy an empty string into it to work around static hidl_string HIDL_EMPTY = hidl_string(""); if (success && dataProfiles[i].user == NULL && !copyHidlStringToRil( &dataProfiles[i].user, HIDL_EMPTY, pRI)) { success = false; } if (success && dataProfiles[i].password == NULL && !copyHidlStringToRil( &dataProfiles[i].password, HIDL_EMPTY, pRI)) { success = false; } if (!success) { freeSetDataProfileData(num, dataProfiles, dataProfilePtrs, 4, &RIL_DataProfileInfo::apn, &RIL_DataProfileInfo::protocol, Loading Loading @@ -2487,6 +2500,19 @@ Return<void> RadioImpl::setDataProfile(int32_t serial, const hidl_vec<DataProfil success = false; } // FIXUP: at least the libsec-ril on zero can't handle user and password // being passed as NULL-pointers. Copy an empty string into it to work around static hidl_string HIDL_EMPTY = hidl_string(""); if (success && dataProfiles[i].user == NULL && !copyHidlStringToRil( &dataProfiles[i].user, HIDL_EMPTY, pRI)) { success = false; } if (success && dataProfiles[i].password == NULL && !copyHidlStringToRil( &dataProfiles[i].password, HIDL_EMPTY, pRI)) { success = false; } if (!success) { freeSetDataProfileData(num, dataProfiles, dataProfilePtrs, 6, &RIL_DataProfileInfo_v15::apn, &RIL_DataProfileInfo_v15::protocol, Loading Loading
ril/libril/ril_service.cpp +26 −0 Original line number Diff line number Diff line Loading @@ -2413,6 +2413,19 @@ Return<void> RadioImpl::setDataProfile(int32_t serial, const hidl_vec<DataProfil success = false; } // FIXUP: at least the libsec-ril on zero can't handle user and password // being passed as NULL-pointers. Copy an empty string into it to work around static hidl_string HIDL_EMPTY = hidl_string(""); if (success && dataProfiles[i].user == NULL && !copyHidlStringToRil( &dataProfiles[i].user, HIDL_EMPTY, pRI)) { success = false; } if (success && dataProfiles[i].password == NULL && !copyHidlStringToRil( &dataProfiles[i].password, HIDL_EMPTY, pRI)) { success = false; } if (!success) { freeSetDataProfileData(num, dataProfiles, dataProfilePtrs, 4, &RIL_DataProfileInfo::apn, &RIL_DataProfileInfo::protocol, Loading Loading @@ -2487,6 +2500,19 @@ Return<void> RadioImpl::setDataProfile(int32_t serial, const hidl_vec<DataProfil success = false; } // FIXUP: at least the libsec-ril on zero can't handle user and password // being passed as NULL-pointers. Copy an empty string into it to work around static hidl_string HIDL_EMPTY = hidl_string(""); if (success && dataProfiles[i].user == NULL && !copyHidlStringToRil( &dataProfiles[i].user, HIDL_EMPTY, pRI)) { success = false; } if (success && dataProfiles[i].password == NULL && !copyHidlStringToRil( &dataProfiles[i].password, HIDL_EMPTY, pRI)) { success = false; } if (!success) { freeSetDataProfileData(num, dataProfiles, dataProfilePtrs, 6, &RIL_DataProfileInfo_v15::apn, &RIL_DataProfileInfo_v15::protocol, Loading