aboutsummaryrefslogtreecommitdiffstats
path: root/ll-auth-binding/src
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2017-08-01 09:18:10 +0200
committerLoïc Collignon <loic.collignon@iot.bzh>2017-08-01 09:18:10 +0200
commit4754c538c8b987b54ebf363f97123fc43d909c76 (patch)
tree2df9a15a57e4e3d4536cfd589c0af78e8c04272c /ll-auth-binding/src
parente490f85b3ad29f3457d77cd3b2bdf31a76b22ac9 (diff)
fixed a crash when logout.
Change-Id: I6073c89e9e507d79f6bf09254376465959d34782 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'll-auth-binding/src')
-rw-r--r--ll-auth-binding/src/ll-auth-binding.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ll-auth-binding/src/ll-auth-binding.c b/ll-auth-binding/src/ll-auth-binding.c
index 37c47e0..dffb866 100644
--- a/ll-auth-binding/src/ll-auth-binding.c
+++ b/ll-auth-binding/src/ll-auth-binding.c
@@ -232,8 +232,7 @@ static void logout(const char* device)
}
else
{
- json_object_object_add(result, "message", json_object_new_string(current_device));
- json_object_object_add(result, "user", json_object_new_string("The unplugged device wasn't the user key!"));
+ json_object_object_add(result, "message", json_object_new_string("The unplugged device wasn't the user key!"));
AFB_INFO("The unplugged device wasn't the user key!");
afb_event_broadcast(evt_failed, result);
}