commit | bac72b29f8ba128de97656ccba2af157f680b61b | [log] [tgz] |
---|---|---|
author | Bryce Harrington <bryce@osg.samsung.com> | Fri Jul 08 18:48:19 2016 -0700 |
committer | Bryce Harrington <bryce@osg.samsung.com> | Fri Jul 08 18:54:28 2016 -0700 |
tree | 2bd5689ad7752ad8eda1f1d2eaaff513cc44407a | |
parent | 9c09fe70c75e1dc5807f24d3561f7a1906fa6aa8 [diff] |
rdp: Check for non-numeric value in RDP_FD env var strtoul(nptr, endptr, ...) will set *endptr to nptr in the case of where no digits were read from the string, and return 0. Running with RDP_FD=foo would thus result in fd=0 being specified to freerdp_peer_new(), which is unlikely to be the user's intent. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>