[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev] gnutls-cli bug

From: Hal Eden
Subject: [gnutls-dev] gnutls-cli bug
Date: Thu, 12 Jul 2007 18:52:24 -0600

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:

<               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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]