Message ID | 20240716101136.44583-2-m.rudik@omp.ru (mailing list archive) |
---|---|
State | Accepted |
Commit | 8bd3d6573a85b2b12ec407d580d233c798a77b31 |
Headers | show |
Series | Fix issues found with static analyzer | expand |
diff --git a/drivers/stemodem/gprs-context.c b/drivers/stemodem/gprs-context.c index a23c6f83..58085f5b 100644 --- a/drivers/stemodem/gprs-context.c +++ b/drivers/stemodem/gprs-context.c @@ -193,6 +193,10 @@ static void ste_eppsd_up_cb(gboolean ok, GAtResult *result, gpointer user_data) for (i = 0; i < g_at_result_num_response_lines(result); i++) { g_at_result_iter_next(&iter, NULL); res_string = g_at_result_iter_raw_line(&iter); + + if (res_string == NULL) + goto error; + length = strlen(res_string); if (!g_markup_parse_context_parse(context, res_string,