summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-05-13 16:09:54 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-05-13 16:26:11 +0200
commit94f1cdb86c21bc043803196dc0b3406a0cc75e7e (patch)
treebb7ae42e8f0e52ca4db2443cd9d07d65b4b29038
parent6b2b61359a7e84c06ea6f2dba38be02489e7e26b (diff)
downloadconnman-94f1cdb86c21bc043803196dc0b3406a0cc75e7e.tar.gz
connman-94f1cdb86c21bc043803196dc0b3406a0cc75e7e.tar.bz2
connman-94f1cdb86c21bc043803196dc0b3406a0cc75e7e.zip
session: Fix error path __connman_session_creat()
Don't free the session if it exists already.
-rw-r--r--src/session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index b57ef71f..d068087a 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1323,6 +1323,7 @@ int __connman_session_create(DBusMessage *msg)
session = g_hash_table_lookup(session_hash, session_path);
if (session != NULL) {
+ session = NULL;
err = -EEXIST;
goto err;
}