Red Hat Bugzilla – Bug 1147717
free'ing a not-connected agent closes STDIN
Last modified: 2016-11-30 19:48:54 EST
Created attachment 942543 [details] Example Description of problem: I had been playing with curl_easy_perform() when I found out that I cannot read from STDIN after uploading to a "scp://" URL. Version-Release number of selected component (if applicable): libssh2-1.4.3-8.el7_0.x86_64 How reproducible: Always Steps to Reproduce: 1. run the attached example 2. 3. Actual results: fcntl(0, F_GETFD): 0 libssh2_agent_{init,connect,free} fcntl(0, F_GETFD): Bad file descriptor Expected results: fcntl(0, F_GETFD): 0 libssh2_agent_{init,connect,free} fcntl(0, F_GETFD): 0 Additional info:
Created attachment 942544 [details] Propsed patch
Thanks for the bug report, minimal, example, and patch! upstream commit: http://git.libssh2.org/?p=libssh2.git;a=commitdiff;h=1ad20ac7
fixed in libssh2-1.4.3-16.fc22, libssh2-1.4.3-16.fc21, libssh2-1.4.3-10.fc20, and libssh2-1.4.3-8.fc19
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-2140.html