mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
bus-proxyd: fix incorrect comparison
Err can't be bigger then zero. Rest of the code uses negative Exxxx values.
This commit is contained in:
parent
bfa695b5cc
commit
eb17e17859
@ -768,7 +768,7 @@ static int process_driver(sd_bus *a, sd_bus *b, sd_bus_message *m) {
|
||||
if (r < 0)
|
||||
return synthetic_reply_method_errno(m, r, NULL);
|
||||
|
||||
if (err > 0)
|
||||
if (err < 0)
|
||||
return synthetic_reply_method_errno(m, err, NULL);
|
||||
|
||||
return synthetic_reply_return_strv(m, owners);
|
||||
|
Loading…
x
Reference in New Issue
Block a user