diff options
author | Christopher Pitstick <cmp@pitstick.net> | 2021-06-27 05:37:58 +0300 |
---|---|---|
committer | Christopher Pitstick <cmp@pitstick.net> | 2021-12-08 09:41:07 +0300 |
commit | 0a2562d33d8a31d5606beb9e05f8c7b6860131db (patch) | |
tree | e740f5c1055773cc57c836a5bcd37ba2379c0658 /libxrdp | |
parent | a266d67fdfef886793df1e623eb05c95da71af37 (diff) |
Initial cut at a unit test for xrdp_sec_process_mcs_data_monitors
Diffstat (limited to 'libxrdp')
-rw-r--r-- | libxrdp/xrdp_sec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c index c5b34272..8fa34aea 100644 --- a/libxrdp/xrdp_sec.c +++ b/libxrdp/xrdp_sec.c @@ -2330,7 +2330,7 @@ xrdp_sec_process_mcs_data_channels(struct xrdp_sec *self, struct stream *s) /*****************************************************************************/ /* Process a [MS-RDPBCGR] TS_UD_CS_MONITOR message. reads the client monitors data */ -static int +int xrdp_sec_process_mcs_data_monitors(struct xrdp_sec *self, struct stream *s) { int index; @@ -2374,7 +2374,7 @@ xrdp_sec_process_mcs_data_monitors(struct xrdp_sec *self, struct stream *s) LOG(LOG_LEVEL_ERROR, "[MS-RDPBCGR] Protocol error: TS_UD_CS_MONITOR monitorCount " "MUST be less than 16, received: %d", monitorCount); - return 1; + return 2; } client_info->monitorCount = monitorCount; @@ -2468,7 +2468,7 @@ xrdp_sec_process_mcs_data_monitors(struct xrdp_sec *self, struct stream *s) "Allowed height range: min %d, max %d. Height received: %d", 0xC8, 0x7FFE, client_info->width, 0xC8, 0x7FFE, client_info->height); - return 1; /* error */ + return 3; /* error */ } /* keep a copy of non negative monitor info values for xrdp_wm usage */ |