mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
bluetooth: Fail if BlueZ tries to give duplicate device addresses.
This commit is contained in:
parent
cd23fbf947
commit
849161f086
1 changed files with 5 additions and 1 deletions
|
|
@ -372,7 +372,11 @@ static int parse_device_property(pa_bluetooth_device *d, DBusMessageIter *i, boo
|
|||
return -1;
|
||||
}
|
||||
|
||||
pa_xfree(d->address);
|
||||
if (d->address) {
|
||||
pa_log("Device %s: Received a duplicate Address property.", d->path);
|
||||
return -1;
|
||||
}
|
||||
|
||||
d->address = pa_xstrdup(value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue