[gnutls-dev] gnutls-cli bug

Hal Eden n.mavrogiannopoulos at gmail.com
Fri Jul 13 02:52:24 CEST 2007


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-dev mailing list