{"action":"opened","issue":{"url":"https://api.github.com/repos/LudovicRousseau/CCID/issues/38","repository_url":"https://api.github.com/repos/LudovicRousseau/CCID","labels_url":"https://api.github.com/repos/LudovicRousseau/CCID/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/LudovicRousseau/CCID/issues/38/comments","events_url":"https://api.github.com/repos/LudovicRousseau/CCID/issues/38/events","html_url":"https://github.com/LudovicRousseau/CCID/issues/38","id":272101674,"number":38,"title":"The checking of `bInterfaceNumber` is skipped at the first time","user":{"login":"godfreychung","id":7802263,"avatar_url":"https://avatars1.githubusercontent.com/u/7802263?v=4","gravatar_id":"","url":"https://api.github.com/users/godfreychung","html_url":"https://github.com/godfreychung","followers_url":"https://api.github.com/users/godfreychung/followers","following_url":"https://api.github.com/users/godfreychung/following{/other_user}","gists_url":"https://api.github.com/users/godfreychung/gists{/gist_id}","starred_url":"https://api.github.com/users/godfreychung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godfreychung/subscriptions","organizations_url":"https://api.github.com/users/godfreychung/orgs","repos_url":"https://api.github.com/users/godfreychung/repos","events_url":"https://api.github.com/users/godfreychung/events{/privacy}","received_events_url":"https://api.github.com/users/godfreychung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-08T07:43:24Z","updated_at":"2017-11-08T07:43:24Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The `static_interface` is initialized with -1 and the `interface_number` is initialized with `static_interface`.\r\nhttps://github.com/LudovicRousseau/CCID/blob/373a0af0f91fde530ddd782e991a78bf42e7124d/src/ccid_usb.c#L429\r\nhttps://github.com/LudovicRousseau/CCID/blob/373a0af0f91fde530ddd782e991a78bf42e7124d/src/ccid_usb.c#L472\r\n\r\nTherefore, the checking of `bInterfaceNumber` is skipped at the first time.\r\nhttps://github.com/LudovicRousseau/CCID/blob/373a0af0f91fde530ddd782e991a78bf42e7124d/src/ccid_usb.c#L628-L629\r\n\r\nWill it be an issue if wrong interface returns at the first time?"}}
{"actor":{"display_login":"godfreychung"}}