aboutsummaryrefslogtreecommitdiff
path: root/src/mm-serial-parsers.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-12-07 17:07:46 -0600
committerDan Williams <dcbw@redhat.com>2011-12-07 17:07:46 -0600
commit2af1a612e9187c0e2bf3a8e3d007f04aa023add9 (patch)
treef3a864e6521e8459bf1bb76840e534bb01f002e3 /src/mm-serial-parsers.c
parentc1e64f1a33b8b877945e59bda58b1969cdc27614 (diff)
core: don't crash on error if response is NULL
Various bits of the code didn't check if response was valid or not during error conditions, and when an error occurs sometimes it'll be NULL (since not all errors are translated errors from the modem, some are serial or general ones). We have to make sure we don't try to use response->str when response doesn't exist. Found in the generic CDMA code likely as a result of d5d9eec2b52363a7460aeec0c020b1c6a7af6b03 but was a bug long before that commit happened anyway.
Diffstat (limited to 'src/mm-serial-parsers.c')
0 files changed, 0 insertions, 0 deletions