mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
parent
c8431e9e35
commit
b21f237d99
@ -191,12 +191,12 @@ _public_ int sd_bus_track_add_name(sd_bus_track *track, const char *name) {
|
|||||||
i = hashmap_get(track->names, name);
|
i = hashmap_get(track->names, name);
|
||||||
if (i) {
|
if (i) {
|
||||||
if (track->recursive) {
|
if (track->recursive) {
|
||||||
unsigned k = track->n_ref + 1;
|
unsigned k = i->n_ref + 1;
|
||||||
|
|
||||||
if (k < track->n_ref) /* Check for overflow */
|
if (k < i->n_ref) /* Check for overflow */
|
||||||
return -EOVERFLOW;
|
return -EOVERFLOW;
|
||||||
|
|
||||||
track->n_ref = k;
|
i->n_ref = k;
|
||||||
}
|
}
|
||||||
|
|
||||||
bus_track_remove_from_queue(track);
|
bus_track_remove_from_queue(track);
|
||||||
|
Loading…
Reference in New Issue
Block a user