]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls-cli shouldn't print errors on EAGAIN and INTERRUPTED.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 20 Feb 2011 20:05:16 +0000 (21:05 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 20 Feb 2011 20:05:16 +0000 (21:05 +0100)
src/cli.c

index 5df49f82771dd334da6d902576d23b1b23d7618c..f7ee055c168300ef4361dc5d4621b6247fb8e826 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -622,7 +622,7 @@ handle_error (socket_st * hd, int err)
   int alert, ret;
   const char *err_type, *str;
 
-  if (err >= 0)
+  if (err >= 0 || err == GNUTLS_E_AGAIN || err == GNUTLS_E_INTERRUPTED)
     return 0;
 
   if (gnutls_error_is_fatal (err) == 0)