chiark / gitweb /
bus-proxyd: fix incorrect comparison
authorLukas Nykryn <lnykryn@redhat.com>
Fri, 25 Jul 2014 08:25:06 +0000 (10:25 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Fri, 25 Jul 2014 08:25:06 +0000 (10:25 +0200)
We should be interested in k variable.

src/bus-proxyd/bus-proxyd.c

index 066da50..1f17fe8 100644 (file)
@@ -1397,7 +1397,7 @@ int main(int argc, char *argv[]) {
                                 else {
                                         k = sd_bus_send(a, m, NULL);
                                         if (k < 0) {
                                 else {
                                         k = sd_bus_send(a, m, NULL);
                                         if (k < 0) {
-                                                if (r == -ECONNRESET)
+                                                if (k == -ECONNRESET)
                                                         r = 0;
                                                 else {
                                                         r = k;
                                                         r = 0;
                                                 else {
                                                         r = k;