summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-12-09 01:08:04 +0000
committerPavel Roskin <plroskin@gmail.com>2017-01-11 23:25:42 -0800
commit8ee886a5cc3f13aaf52251a802eb7e3c3e37f9c7 (patch)
tree34bcf74b32bd50a4230997f2c6ff36e4b6f4b1bf
parentf1a521204aca18d3c7a1ed253fe2306caf019024 (diff)
downloadxrdp-proprietary-8ee886a5cc3f13aaf52251a802eb7e3c3e37f9c7.tar.gz
xrdp-proprietary-8ee886a5cc3f13aaf52251a802eb7e3c3e37f9c7.zip
Don't log device_data_len in the code where it may be uninitialized
Log device_data_len only in the code that reads it.
-rw-r--r--sesman/chansrv/devredir.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sesman/chansrv/devredir.c b/sesman/chansrv/devredir.c
index 3dd74340..a8377e7d 100644
--- a/sesman/chansrv/devredir.c
+++ b/sesman/chansrv/devredir.c
@@ -699,9 +699,8 @@ void devredir_proc_client_devlist_announce_req(struct stream *s)
/* for smart cards, device data len always 0 */
- log_debug("device_type=SMARTCARD device_id=0x%x dosname=%s "
- "device_data_len=%d",
- g_device_id, preferred_dos_name, device_data_len);
+ log_debug("device_type=SMARTCARD device_id=0x%x dosname=%s",
+ g_device_id, preferred_dos_name);
devredir_send_server_device_announce_resp(g_device_id);
scard_device_announce(g_device_id);