{"action":"created","comment":{"url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/comments/172134026","pull_request_review_id":101098267,"id":172134026,"diff_hunk":"@@ -541,14 +544,18 @@ int cli(void)\n    servaddr.sin_family = AF_INET;\n    inet_aton(mz_listen_addr, &servaddr.sin_addr);\n    servaddr.sin_port = htons(mz_port); \n-   bind(s, (struct sockaddr *)&servaddr, sizeof(servaddr));\n+   if (bind(s, (struct sockaddr *)&servaddr, sizeof(servaddr))==-1) {","path":"staging/cli.c","position":15,"original_position":15,"commit_id":"447d8e592664b938824a0200ada030f485c07569","original_commit_id":"447d8e592664b938824a0200ada030f485c07569","user":{"login":"tklauser","id":539708,"avatar_url":"https://avatars2.githubusercontent.com/u/539708?v=4","gravatar_id":"","url":"https://api.github.com/users/tklauser","html_url":"https://github.com/tklauser","followers_url":"https://api.github.com/users/tklauser/followers","following_url":"https://api.github.com/users/tklauser/following{/other_user}","gists_url":"https://api.github.com/users/tklauser/gists{/gist_id}","starred_url":"https://api.github.com/users/tklauser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tklauser/subscriptions","organizations_url":"https://api.github.com/users/tklauser/orgs","repos_url":"https://api.github.com/users/tklauser/repos","events_url":"https://api.github.com/users/tklauser/events{/privacy}","received_events_url":"https://api.github.com/users/tklauser/received_events","type":"User","site_admin":false},"body":"Spaces around \"==\" please.","created_at":"2018-03-05T09:51:31Z","updated_at":"2018-03-05T09:52:01Z","html_url":"https://github.com/netsniff-ng/netsniff-ng/pull/186#discussion_r172134026","pull_request_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/186","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/comments/172134026"},"html":{"href":"https://github.com/netsniff-ng/netsniff-ng/pull/186#discussion_r172134026"},"pull_request":{"href":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/186"}}},"pull_request":{"url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/186","id":172500499,"html_url":"https://github.com/netsniff-ng/netsniff-ng/pull/186","diff_url":"https://github.com/netsniff-ng/netsniff-ng/pull/186.diff","patch_url":"https://github.com/netsniff-ng/netsniff-ng/pull/186.patch","issue_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/issues/186","number":186,"state":"open","locked":false,"title":"staging: fix crashes when some external APIs fail","user":{"login":"ZhouyangJia","id":17950336,"avatar_url":"https://avatars2.githubusercontent.com/u/17950336?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhouyangJia","html_url":"https://github.com/ZhouyangJia","followers_url":"https://api.github.com/users/ZhouyangJia/followers","following_url":"https://api.github.com/users/ZhouyangJia/following{/other_user}","gists_url":"https://api.github.com/users/ZhouyangJia/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhouyangJia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhouyangJia/subscriptions","organizations_url":"https://api.github.com/users/ZhouyangJia/orgs","repos_url":"https://api.github.com/users/ZhouyangJia/repos","events_url":"https://api.github.com/users/ZhouyangJia/events{/privacy}","received_events_url":"https://api.github.com/users/ZhouyangJia/received_events","type":"User","site_admin":false},"body":"Some potential API bugs may cause crashes, which are mainly caused by insufficient error handling.\r\nThis patch fixes these reported potential bugs by adding error handling code.\r\n\r\nSigned-off-by: Zhouyang Jia <jiazhouyang09@gmail.com>","created_at":"2018-03-02T13:16:56Z","updated_at":"2018-03-05T09:52:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70b6ff0c03719cc13fc2f05131cc4ad34446310b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/186/commits","review_comments_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/186/comments","review_comment_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/issues/186/comments","statuses_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/statuses/447d8e592664b938824a0200ada030f485c07569","head":{"label":"ZhouyangJia:master","ref":"master","sha":"447d8e592664b938824a0200ada030f485c07569","user":{"login":"ZhouyangJia","id":17950336,"avatar_url":"https://avatars2.githubusercontent.com/u/17950336?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhouyangJia","html_url":"https://github.com/ZhouyangJia","followers_url":"https://api.github.com/users/ZhouyangJia/followers","following_url":"https://api.github.com/users/ZhouyangJia/following{/other_user}","gists_url":"https://api.github.com/users/ZhouyangJia/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhouyangJia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhouyangJia/subscriptions","organizations_url":"https://api.github.com/users/ZhouyangJia/orgs","repos_url":"https://api.github.com/users/ZhouyangJia/repos","events_url":"https://api.github.com/users/ZhouyangJia/events{/privacy}","received_events_url":"https://api.github.com/users/ZhouyangJia/received_events","type":"User","site_admin":false},"repo":{"id":123579788,"name":"netsniff-ng","full_name":"ZhouyangJia/netsniff-ng","owner":{"login":"ZhouyangJia","id":17950336,"avatar_url":"https://avatars2.githubusercontent.com/u/17950336?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhouyangJia","html_url":"https://github.com/ZhouyangJia","followers_url":"https://api.github.com/users/ZhouyangJia/followers","following_url":"https://api.github.com/users/ZhouyangJia/following{/other_user}","gists_url":"https://api.github.com/users/ZhouyangJia/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhouyangJia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhouyangJia/subscriptions","organizations_url":"https://api.github.com/users/ZhouyangJia/orgs","repos_url":"https://api.github.com/users/ZhouyangJia/repos","events_url":"https://api.github.com/users/ZhouyangJia/events{/privacy}","received_events_url":"https://api.github.com/users/ZhouyangJia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZhouyangJia/netsniff-ng","description":"A Swiss army knife for your daily Linux network plumbing.","fork":true,"url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng","forks_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/forks","keys_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/teams","hooks_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/hooks","issue_events_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/issues/events{/number}","events_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/events","assignees_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/assignees{/user}","branches_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/branches{/branch}","tags_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/tags","blobs_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/statuses/{sha}","languages_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/languages","stargazers_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/stargazers","contributors_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/contributors","subscribers_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/subscribers","subscription_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/subscription","commits_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/contents/{+path}","compare_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/merges","archive_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/downloads","issues_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/issues{/number}","pulls_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/pulls{/number}","milestones_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/milestones{/number}","notifications_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/labels{/name}","releases_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/releases{/id}","deployments_url":"https://api.github.com/repos/ZhouyangJia/netsniff-ng/deployments","created_at":"2018-03-02T13:03:08Z","updated_at":"2018-03-02T13:03:11Z","pushed_at":"2018-03-02T13:11:22Z","git_url":"git://github.com/ZhouyangJia/netsniff-ng.git","ssh_url":"git@github.com:ZhouyangJia/netsniff-ng.git","clone_url":"https://github.com/ZhouyangJia/netsniff-ng.git","svn_url":"https://github.com/ZhouyangJia/netsniff-ng","homepage":"http://netsniff-ng.org","size":2808,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"netsniff-ng:master","ref":"master","sha":"b90d055be5dd30212ebd0c0a810a7f020df70321","user":{"login":"netsniff-ng","id":6716649,"avatar_url":"https://avatars0.githubusercontent.com/u/6716649?v=4","gravatar_id":"","url":"https://api.github.com/users/netsniff-ng","html_url":"https://github.com/netsniff-ng","followers_url":"https://api.github.com/users/netsniff-ng/followers","following_url":"https://api.github.com/users/netsniff-ng/following{/other_user}","gists_url":"https://api.github.com/users/netsniff-ng/gists{/gist_id}","starred_url":"https://api.github.com/users/netsniff-ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netsniff-ng/subscriptions","organizations_url":"https://api.github.com/users/netsniff-ng/orgs","repos_url":"https://api.github.com/users/netsniff-ng/repos","events_url":"https://api.github.com/users/netsniff-ng/events{/privacy}","received_events_url":"https://api.github.com/users/netsniff-ng/received_events","type":"Organization","site_admin":false},"repo":{"id":1496894,"name":"netsniff-ng","full_name":"netsniff-ng/netsniff-ng","owner":{"login":"netsniff-ng","id":6716649,"avatar_url":"https://avatars0.githubusercontent.com/u/6716649?v=4","gravatar_id":"","url":"https://api.github.com/users/netsniff-ng","html_url":"https://github.com/netsniff-ng","followers_url":"https://api.github.com/users/netsniff-ng/followers","following_url":"https://api.github.com/users/netsniff-ng/following{/other_user}","gists_url":"https://api.github.com/users/netsniff-ng/gists{/gist_id}","starred_url":"https://api.github.com/users/netsniff-ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netsniff-ng/subscriptions","organizations_url":"https://api.github.com/users/netsniff-ng/orgs","repos_url":"https://api.github.com/users/netsniff-ng/repos","events_url":"https://api.github.com/users/netsniff-ng/events{/privacy}","received_events_url":"https://api.github.com/users/netsniff-ng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netsniff-ng/netsniff-ng","description":"A Swiss army knife for your daily Linux network plumbing.","fork":false,"url":"https://api.github.com/repos/netsniff-ng/netsniff-ng","forks_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/forks","keys_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/teams","hooks_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/hooks","issue_events_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/issues/events{/number}","events_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/events","assignees_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/assignees{/user}","branches_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/branches{/branch}","tags_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/tags","blobs_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/git/refs{/sha}","trees_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/statuses/{sha}","languages_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/languages","stargazers_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/stargazers","contributors_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/contributors","subscribers_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/subscribers","subscription_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/subscription","commits_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/commits{/sha}","git_commits_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/git/commits{/sha}","comments_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/comments{/number}","issue_comment_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/issues/comments{/number}","contents_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/contents/{+path}","compare_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/merges","archive_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/downloads","issues_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/issues{/number}","pulls_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls{/number}","milestones_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/milestones{/number}","notifications_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/labels{/name}","releases_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/releases{/id}","deployments_url":"https://api.github.com/repos/netsniff-ng/netsniff-ng/deployments","created_at":"2011-03-18T16:21:21Z","updated_at":"2018-03-02T07:33:00Z","pushed_at":"2018-03-02T13:16:56Z","git_url":"git://github.com/netsniff-ng/netsniff-ng.git","ssh_url":"git@github.com:netsniff-ng/netsniff-ng.git","clone_url":"https://github.com/netsniff-ng/netsniff-ng.git","svn_url":"https://github.com/netsniff-ng/netsniff-ng","homepage":"http://netsniff-ng.org","size":2765,"stargazers_count":536,"watchers_count":536,"language":"C","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":152,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":152,"open_issues":40,"watchers":536,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/186"},"html":{"href":"https://github.com/netsniff-ng/netsniff-ng/pull/186"},"issue":{"href":"https://api.github.com/repos/netsniff-ng/netsniff-ng/issues/186"},"comments":{"href":"https://api.github.com/repos/netsniff-ng/netsniff-ng/issues/186/comments"},"review_comments":{"href":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/186/comments"},"review_comment":{"href":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netsniff-ng/netsniff-ng/pulls/186/commits"},"statuses":{"href":"https://api.github.com/repos/netsniff-ng/netsniff-ng/statuses/447d8e592664b938824a0200ada030f485c07569"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tklauser"}}