mirror of https://github.com/labapart/gattlib
Add verification for null mac address.
parent
321c37dc57
commit
9451e19426
|
@ -848,7 +848,7 @@ int gattlib_get_rssi_from_mac(void *adapter, const char *mac_address, int16_t *r
|
||||||
OrgBluezDevice1 *bluez_device1;
|
OrgBluezDevice1 *bluez_device1;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (rssi == NULL) {
|
if (rssi == NULL || mac_address == NULL) {
|
||||||
return GATTLIB_INVALID_PARAMETER;
|
return GATTLIB_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue