service: Fix reply_pending in __connman_service_connect
authorDanny Jeongseok Seo <s.seo@samsung.com>
Fri, 13 Jan 2012 15:11:26 +0000 (16:11 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 13 Jan 2012 15:11:26 +0000 (16:11 +0100)
src/service.c

index 02f494b..485104a 100644 (file)
@@ -4637,7 +4637,7 @@ int __connman_service_connect(struct connman_service *service)
                                                        NULL) == -EIO)
                                return -EINPROGRESS;
                }
-               reply_pending(service, err);
+               reply_pending(service, -err);
        }
 
        return err;