diff options
author | Ben Chan <benchan@chromium.org> | 2017-08-02 21:53:14 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-08-03 12:19:37 +0200 |
commit | bae4590784e9c4ca9b902b9fc69606cffe0ddb14 (patch) | |
tree | feb1aabf9dbb954951f26e7297c3fb5f7b96477f /src | |
parent | 5accaf504f92b93b66058ac856a7d0b150b1c410 (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')
0 files changed, 0 insertions, 0 deletions