diff --git a/sesman/chansrv/devredir.c b/sesman/chansrv/devredir.c index ad68f4f5..2a091fe2 100644 --- a/sesman/chansrv/devredir.c +++ b/sesman/chansrv/devredir.c @@ -528,10 +528,12 @@ devredir_send_server_core_cap_req(void) /* the header */ xstream_wr_u32_le(s, 2); /* Version */ +#ifdef XRDP_SMARTCARD /* setup smart card capability */ xstream_wr_u16_le(s, CAP_SMARTCARD_TYPE); xstream_wr_u16_le(s, 8); xstream_wr_u32_le(s, 1); +#endif /* send to client */ bytes = xstream_len(s);