{"action":"created","issue":{"url":"https://api.github.com/repos/Mr-Dave/motion/issues/59","labels_url":"https://api.github.com/repos/Mr-Dave/motion/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/Mr-Dave/motion/issues/59/comments","events_url":"https://api.github.com/repos/Mr-Dave/motion/issues/59/events","html_url":"https://github.com/Mr-Dave/motion/issues/59","id":61674711,"number":59,"title":"Error in netcam_setup_ftp","user":{"login":"bdn02","id":11478219,"avatar_url":"https://avatars.githubusercontent.com/u/11478219?v=3","gravatar_id":"","url":"https://api.github.com/users/bdn02","html_url":"https://github.com/bdn02","followers_url":"https://api.github.com/users/bdn02/followers","following_url":"https://api.github.com/users/bdn02/following{/other_user}","gists_url":"https://api.github.com/users/bdn02/gists{/gist_id}","starred_url":"https://api.github.com/users/bdn02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdn02/subscriptions","organizations_url":"https://api.github.com/users/bdn02/orgs","repos_url":"https://api.github.com/users/bdn02/repos","events_url":"https://api.github.com/users/bdn02/events{/privacy}","received_events_url":"https://api.github.com/users/bdn02/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-14T18:40:50Z","updated_at":"2015-03-23T23:31:28Z","closed_at":null,"body":"I've found an error in netcam_setup_ftp method (netcam.c) in this piece of code:\r\n```c\r\nif (ftp_connect(netcam) < 0) {\r\nftp_free_context(netcam->ftp);\r\nreturn -1;\r\n}\r\n```\r\nThe call to the ftp_free_context throw an \"double free or corruption\".\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Mr-Dave/motion/issues/comments/85245903","html_url":"https://github.com/Mr-Dave/motion/issues/59#issuecomment-85245903","issue_url":"https://api.github.com/repos/Mr-Dave/motion/issues/59","id":85245903,"user":{"login":"Mr-Dave","id":5959350,"avatar_url":"https://avatars.githubusercontent.com/u/5959350?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Dave","html_url":"https://github.com/Mr-Dave","followers_url":"https://api.github.com/users/Mr-Dave/followers","following_url":"https://api.github.com/users/Mr-Dave/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Dave/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Dave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Dave/subscriptions","organizations_url":"https://api.github.com/users/Mr-Dave/orgs","repos_url":"https://api.github.com/users/Mr-Dave/repos","events_url":"https://api.github.com/users/Mr-Dave/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Dave/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T23:31:28Z","updated_at":"2015-03-23T23:31:28Z","body":"I got this error during testing and it appears that you might not have retrieved the latest version of all the files from the unstable branch.  I thought that this error was fixed by the IF condition that was added to line 2852 of netcam.c  Also, the netcam_ftp.c doesn't appear to be updated from your log above since it should now be reporting debug messages from the ftp server.  "}}