]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Don't crash on TLS handshake failures.
authorSimon Josefsson <simon@josefsson.org>
Fri, 18 Apr 2008 15:28:41 +0000 (17:28 +0200)
committerSimon Josefsson <simon@josefsson.org>
Fri, 18 Apr 2008 15:28:41 +0000 (17:28 +0200)
Reported by "Marc F. Clemente" <marc@mclemente.net> in Debian BTS #466477.
This is related to the 5e5f086e124d8d90829fc8e22f34044161da5f80 fix,
this part is necessary too.

src/cli.c

index be8d0cff2ea29141b74f8094df78358859fec9da..01b8b9c94b618d869de12e0ec72a1f5a119cacb7 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -756,7 +756,6 @@ after_handshake:
                  if (ret < 0)
                    {
                      fprintf (stderr, "*** Handshake has failed\n");
-                     socket_bye (&hd);
                      user_term = 1;
                      break;
                    }