Message ID | c0152fe7-830c-a39e-2bc5-546467f6c09a@fourwalledcubicle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fix gatt-database parser function potential NULL re-reference | expand |
diff --git a/src/gatt-database.c b/src/gatt-database.c index 90cc4bade..fa3d79aab 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -1597,7 +1597,11 @@ static bool parse_chrc_flags(DBusMessageIter *array, uint8_t *props, { const char *flag; - *props = *ext_props = 0; + if (!props || ! ext_props) + return false; + + *props = 0; + *ext_props = 0; do {