{"action":"opened","issue":{"url":"https://api.github.com/repos/pilight/pilight/issues/296","repository_url":"https://api.github.com/repos/pilight/pilight","labels_url":"https://api.github.com/repos/pilight/pilight/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/pilight/pilight/issues/296/comments","events_url":"https://api.github.com/repos/pilight/pilight/issues/296/events","html_url":"https://github.com/pilight/pilight/issues/296","id":168951772,"number":296,"title":"Segfault of  deamon when sending wrong formatted data","user":{"login":"DavidLP","id":6951141,"avatar_url":"https://avatars.githubusercontent.com/u/6951141?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidLP","html_url":"https://github.com/DavidLP","followers_url":"https://api.github.com/users/DavidLP/followers","following_url":"https://api.github.com/users/DavidLP/following{/other_user}","gists_url":"https://api.github.com/users/DavidLP/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidLP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidLP/subscriptions","organizations_url":"https://api.github.com/users/DavidLP/orgs","repos_url":"https://api.github.com/users/DavidLP/repos","events_url":"https://api.github.com/users/DavidLP/events{/privacy}","received_events_url":"https://api.github.com/users/DavidLP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-02T18:13:21Z","updated_at":"2016-08-02T18:13:21Z","closed_at":null,"body":"When I skip the brackets  around the protocol identifier the daemon crashes with a segfault.\r\nThe code is from the API example:\r\n```\r\n{\r\n    \"action\": \"send\",\r\n    \"code\": {\r\n        \"protocol\": [ \"kaku_switch\" ],\r\n        \"id\": 1234,\r\n        \"unit\": 0,\r\n        \"off\": 1\r\n    }\r\n}\r\n```\r\nif ```  \"kaku_switch\" ``` instead of ``` [ \"kaku_switch\" ]``` is used a segault occurs."}}
{"actor":{"display_login":"DavidLP"}}