Fix smartcard segfault when no devices are present (#5364)
authorr-barnett <43044166+r-barnett@users.noreply.github.com>
Thu, 2 May 2019 04:11:57 +0000 (23:11 -0500)
committerakallabeth <akallabeth@users.noreply.github.com>
Thu, 2 May 2019 04:11:57 +0000 (06:11 +0200)
commit40ef08ddc5213478be6a697a608ba26956b78a4a
tree4b22da9c89f16e63b07eca0105bea487164493e8
parent84e50582b79a0c0610f3f1ce8ab105cf0d786906
Fix smartcard segfault when no devices are present (#5364)

* Don't assume smartcard reader list is not empty.

* Check status of retrieval of smartcard device list before trying to filter it

* style fixes
channels/smartcard/client/smartcard_operations.c