bus-proxyd: fix incorrect comparison

We should be interested in k variable.
This commit is contained in:
Lukas Nykryn
2014-07-25 10:25:06 +02:00
parent eb17e17859
commit e05aa2e02b

View File

@@ -1397,7 +1397,7 @@ int main(int argc, char *argv[]) {
else {
k = sd_bus_send(a, m, NULL);
if (k < 0) {
if (r == -ECONNRESET)
if (k == -ECONNRESET)
r = 0;
else {
r = k;