summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-07-25 10:25:06 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-07-25 10:25:06 +0200
commite05aa2e02ba35d8b3741dddb79af3c802308414b (patch)
tree407684b53080b714e8a088549ee498d376c6c82a
parenteb17e1785973352c0853868e1c676078870f22dd (diff)
bus-proxyd: fix incorrect comparison
We should be interested in k variable.
-rw-r--r--src/bus-proxyd/bus-proxyd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus-proxyd/bus-proxyd.c b/src/bus-proxyd/bus-proxyd.c
index 066da5047b..1f17fe8c13 100644
--- a/src/bus-proxyd/bus-proxyd.c
+++ b/src/bus-proxyd/bus-proxyd.c
@@ -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;