[gnutls-dev] gnutls-cli bug

Simon Josefsson simon at josefsson.org
Sat Jul 14 10:46:19 CEST 2007


Hi, thanks for the report.  Patch installed on the 1.7.x branch.

/Simon

Hal Eden <n.mavrogiannopoulos at gmail.com> writes:

> when using the -s flag under macosx, i found that it would perform  
> the handshake, but when i typed the next line to be sent to the  
> server it would exit the program and leave what i typed in the input  
> buffer for the shell to read (it works fine when i send SIGALRM).
>
> i think what is needed is for the EOF flag to be cleared: clearerr()  
> does this (there may be other, better solutions).
>
> i put  this after:
>
> 673:
> <               ret = do_handshake (&hd);
>
>
>  >               ret = do_handshake (&hd);
>  >		 clearerr(stdin);
>
>
> and tested.  this seems to fix the issue.
>
> let me know if you need any further information.
>
> thanks for this fine utility.
>
> hal




More information about the Gnutls-devel mailing list