Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. [PATCH] session_policy_local: Handling of failed_create in
get_uid_reply (Harish Jenny K N)
----------------------------------------------------------------------
Message: 1
Date: Thu, 3 May 2018 13:20:34 +0530
From: Harish Jenny K N <[email protected]>
To: <[email protected]>
Subject: [PATCH] session_policy_local: Handling of failed_create in
get_uid_reply
Message-ID:
<[email protected]>
Content-Type: text/plain
Cleanup of calling failed_create function inside get_uid_reply
is done in this patch.
---
plugins/session_policy_local.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/plugins/session_policy_local.c b/plugins/session_policy_local.c
index f003c0e..9beb098 100644
--- a/plugins/session_policy_local.c
+++ b/plugins/session_policy_local.c
@@ -271,10 +271,8 @@ static void get_uid_reply(unsigned int uid, void
*user_data, int err)
DBG("session %p uid %d", policy->session, uid);
- if (err < 0) {
- cleanup_config(policy);
+ if (err < 0)
goto err;
- }
pwd = getpwuid((uid_t)uid);
if (!pwd) {
@@ -333,7 +331,7 @@ static void get_uid_reply(unsigned int uid, void
*user_data, int err)
return;
err:
- failed_create(NULL, cb, cbd->user_data, err);
+ failed_create(policy, cb, cbd->user_data, err);
g_free(cbd);
g_free(groups);
}
--
1.9.1
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman
------------------------------
End of connman Digest, Vol 31, Issue 2
**************************************