summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-07-14 10:44:56 +0200
committerSimon Josefsson <simon@josefsson.org>2007-07-14 10:44:56 +0200
commit5fa1ab22ec4ddb787ec7b2fd57812696d9a3cc12 (patch)
treea19b994963da5a59fa0dffca8eb3004436b7148e /src
parent93c61f9780649dc48cfa3b3bd8608fa68a5c4b97 (diff)
downloadgnutls-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index 74e47b1cc1..394255c931 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -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");