summaryrefslogtreecommitdiff
path: root/src
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 /src
parenteb17e1785973352c0853868e1c676078870f22dd (diff)
bus-proxyd: fix incorrect comparison
We should be interested in k variable.
Diffstat (limited to 'src')
-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;