diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-07-14 10:44:56 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-07-14 10:44:56 +0200 |
commit | 5fa1ab22ec4ddb787ec7b2fd57812696d9a3cc12 (patch) | |
tree | a19b994963da5a59fa0dffca8eb3004436b7148e /src | |
parent | 93c61f9780649dc48cfa3b3bd8608fa68a5c4b97 (diff) | |
download | gnutls-5fa1ab22ec4ddb787ec7b2fd57812696d9a3cc12.tar.gz |
On starttls EOF on stdin, clear EOF flag to make future reads work OK.
Needed for Mac OS X. Report and tiny patch by Hal Eden
<n.mavrogiannopoulos@gmail.com>.
Diffstat (limited to 'src')
-rw-r--r-- | src/cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -797,6 +797,7 @@ after_handshake: { fprintf (stderr, "*** Starting TLS handshake\n"); ret = do_handshake (&hd); + clearerr (stdin); if (ret < 0) { fprintf (stderr, "*** Handshake has failed\n"); |