chiark / gitweb /
bus-proxyd: fix incorrect comparison
authorLukas Nykryn <lnykryn@redhat.com>
Fri, 25 Jul 2014 07:58:52 +0000 (09:58 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Fri, 25 Jul 2014 07:58:52 +0000 (09:58 +0200)
Err can't be bigger then zero. Rest of the code uses negative Exxxx values.

src/bus-proxyd/bus-proxyd.c

index 79dbdcf..066da50 100644 (file)
@@ -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);