OSDN Git Service

Fix agent_authorize error return
authorJohan Hedberg <johan.hedberg@nokia.com>
Sun, 6 Sep 2009 00:15:42 +0000 (03:15 +0300)
committerJaikumar Ganesh <jaikumar@google.com>
Tue, 29 Sep 2009 00:56:06 +0000 (17:56 -0700)
src/agent.c

index af5aac5..3256ceb 100644 (file)
@@ -353,7 +353,7 @@ int agent_authorize(struct agent *agent,
        err = agent_call_authorize(req, path, uuid);
        if (err < 0) {
                agent_request_free(req);
-               return DBUS_HANDLER_RESULT_NEED_MEMORY;
+               return -ENOMEM;
        }
 
        agent->request = req;