diff options
author | Kirill Buksha <kirbuk200@gmail.com> | 2023-03-14 16:48:37 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2023-03-15 11:02:36 +0000 |
commit | c46380749420d4a9161b3a0e3d8b8e18d6079cb6 (patch) | |
tree | 4e58e95eb51b540329a1a8c6bc909f7d2dce925d /src/plugins | |
parent | 6058d3ded664f70f93ff8f9d73b1a93a1550e389 (diff) |
cinterion: don't assume GError structure always initialized
GError structure may not be initialized after execution of
mm_3gpp_parse_cgdcont_read_response() and accessing it's
fields will cause a segmentation fault.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/cinterion/mm-broadband-modem-cinterion.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/cinterion/mm-broadband-modem-cinterion.c b/src/plugins/cinterion/mm-broadband-modem-cinterion.c index b063d454..678abce5 100644 --- a/src/plugins/cinterion/mm-broadband-modem-cinterion.c +++ b/src/plugins/cinterion/mm-broadband-modem-cinterion.c @@ -1586,7 +1586,10 @@ common_load_initial_eps_cgdcont_ready (MMBaseModem *_self, context_list = mm_3gpp_parse_cgdcont_read_response (response, &error); if (!context_list) - mm_obj_dbg (self, "couldn't parse CGDCONT response: %s", error->message); + if (error) + mm_obj_dbg (self, "couldn't parse CGDCONT response: %s", error->message); + else + mm_obj_dbg (self, "No PDP contexts found."); else { GList *l; |