From: Torin C. <no...@gi...> - 2020-05-18 14:30:40
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 93bed892a82f3980c1bb77db29806820c52ca64b https://github.com/OpenSC/OpenSC/commit/93bed892a82f3980c1bb77db29806820c52ca64b Author: Torin Carey <to...@tc...> Date: 2020-05-18 (Mon, 18 May 2020) Changed paths: M src/tests/sc-test.c Log Message: ----------- tests: Fix card present check Check SC_READER_CARD_PRESENT flag rather than == 1. Having no card present on the first loop and then inserting a card will return rc = CARD_PRESENT | CARD_CHANGED (= 3). SEGFAULT ensures when we mistake the unset opt_reader as having a present card. |