diff --git a/channels/smartcard/client/smartcard_pack.c b/channels/smartcard/client/smartcard_pack.c index 394df36db..d22ad74ab 100644 --- a/channels/smartcard/client/smartcard_pack.c +++ b/channels/smartcard/client/smartcard_pack.c @@ -349,6 +349,9 @@ static char* smartcard_convert_string_list(const void* in, size_t bytes, BOOL un if (bytes < 1) return NULL; + if (in == NULL) + return NULL; + if (unicode) { length = (bytes / sizeof(WCHAR)) - 1;