aboutsummaryrefslogtreecommitdiff
path: root/src/mm-error-helpers.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-08-02 21:53:14 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-08-03 12:19:37 +0200
commitbae4590784e9c4ca9b902b9fc69606cffe0ddb14 (patch)
treefeb1aabf9dbb954951f26e7297c3fb5f7b96477f /src/mm-error-helpers.c
parent5accaf504f92b93b66058ac856a7d0b150b1c410 (diff)
libmm-glib,firmware: fix unique_id checks
The following checks in mm_modem_firmware_select() and mm_modem_firmware_select_sync() could result in a NULL pointer dereference if `unique_id' is NULL: g_return_if_fail (unique_id != NULL || unique_id[0] == '\0') g_return_val_if_fail (unique_id != NULL || unique_id[0] == '\0', FALSE) This patch fixes the checks to properly verify that `unique_id' is neither NULL nor an empty string.
Diffstat (limited to 'src/mm-error-helpers.c')
0 files changed, 0 insertions, 0 deletions