From: Armin Novak Date: Mon, 12 Aug 2019 10:33:06 +0000 (+0200) Subject: Return a proper error if redirection fails. X-Git-Tag: 2.0.0~390^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b036fd7a7de1c6aea79c9736640af5e70105039b;p=platform%2Fupstream%2Ffreerdp.git Return a proper error if redirection fails. --- diff --git a/libfreerdp/core/rdp.c b/libfreerdp/core/rdp.c index de3c97c..8a0c979 100644 --- a/libfreerdp/core/rdp.c +++ b/libfreerdp/core/rdp.c @@ -1576,7 +1576,8 @@ int rdp_check_fds(rdpRdp* rdp) if (status == 1) { - status = rdp_client_redirect(rdp); /* session redirection */ + if (!rdp_client_redirect(rdp)) /* session redirection */ + return -1; } if (status < 0)