diff options
author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-26 15:06:35 -0700 |
---|---|---|
committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-26 15:06:35 -0700 |
commit | 0915d33d707d7bd29e724ebc9412a17fdd5840d4 (patch) | |
tree | 867c00574f591bb4797e10803eabf0b023e94498 /libxrdp/libxrdp.c | |
parent | 56e43c4a3899f9efd4c02f8a2abc0407691b20b5 (diff) | |
download | xrdp-proprietary-0915d33d707d7bd29e724ebc9412a17fdd5840d4.tar.gz xrdp-proprietary-0915d33d707d7bd29e724ebc9412a17fdd5840d4.zip |
coverity: dead code
Diffstat (limited to 'libxrdp/libxrdp.c')
-rw-r--r-- | libxrdp/libxrdp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c index 876d9473..df755f2b 100644 --- a/libxrdp/libxrdp.c +++ b/libxrdp/libxrdp.c @@ -310,18 +310,18 @@ libxrdp_send_palette(struct xrdp_session *session, int *palette) } DEBUG(("libxrdp_send_palette sending palette")); - + /* clear orders */ libxrdp_orders_force_send(session); make_stream(s); init_stream(s, 8192); - + if (session->client_info->use_fast_path & 1) /* fastpath output supported */ { LLOGLN(10, ("libxrdp_send_palette: fastpath")); if (xrdp_rdp_init_fastpath((struct xrdp_rdp *)session->rdp, s) != 0) { - free_stream(s); + free_stream(s); return 1; } } @@ -350,7 +350,7 @@ libxrdp_send_palette(struct xrdp_session *session, int *palette) if (xrdp_rdp_send_fastpath((struct xrdp_rdp *)session->rdp, s, FASTPATH_UPDATETYPE_PALETTE) != 0) { - free_stream(s); + free_stream(s); return 1; } } @@ -360,7 +360,7 @@ libxrdp_send_palette(struct xrdp_session *session, int *palette) RDP_DATA_PDU_UPDATE); } free_stream(s); - + /* send the orders palette too */ libxrdp_orders_init(session); libxrdp_orders_send_palette(session, palette, 0); @@ -674,7 +674,7 @@ libxrdp_send_pointer(struct xrdp_session *session, int cache_idx, switch (bpp) { - case 15: + //case 15: /* coverity: this is logically dead code */ case 16: p16 = (tui16 *) data; for (i = 0; i < 32; i++) @@ -782,7 +782,7 @@ libxrdp_set_pointer(struct xrdp_session *session, int cache_idx) if (xrdp_rdp_send_fastpath((struct xrdp_rdp *)session->rdp, s, FASTPATH_UPDATETYPE_CACHED) != 0) { - free_stream(s); + free_stream(s); return 1; } } |