Check smartcard_convert_string_list for NULL string
authorakallabeth <akallabeth@posteo.net>
Tue, 9 Mar 2021 08:22:39 +0000 (09:22 +0100)
committerakallabeth <akallabeth@users.noreply.github.com>
Tue, 9 Mar 2021 09:20:53 +0000 (10:20 +0100)
commit42f9dff46f736eb3f58d4bb1731710bda00608f9
tree93a0f74b22765264be759a2282905e8307f5b56c
parente335a3a7c74a6313b49e1d15e5534047e6e13ced
Check smartcard_convert_string_list for NULL string

In #6821 it has been reported that there are buggy smartcard
drivers that report a string size but fail to allocate the string
itself. This check avoids a crash with such input parameters

(cherry picked from commit f8b1e662b33f7b8f77cf6582d549348c2d048a2e)
channels/smartcard/client/smartcard_pack.c