Don't try to listen on the scard socket if it isn't there

If the scard local socket can't be created, there's no point
in trying to listen on it. This will just fill the chansrv log
file with errors.
This commit is contained in:
matt335672
2023-01-16 13:41:18 +00:00
parent 8fdb0fab39
commit 5f030a95b7
2 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -803,8 +803,7 @@ devredir_proc_client_core_cap_resp(struct stream *s)
case CAP_SMARTCARD_TYPE:
LOG_DEVEL(LOG_LEVEL_DEBUG, "got CAP_SMARTCARD_TYPE");
g_is_smartcard_redir_supported = 1;
scard_init();
g_is_smartcard_redir_supported = (scard_init() == 0);
break;
}
xstream_seek(s, cap_len);