changeset 199:3e79fef1031d

Still bugs pending...
author Sebastien Decugis <sdecugis@nict.go.jp>
date Tue, 09 Feb 2010 18:23:07 +0900
parents 5ea550c3f033
children ff557d8b48d7
files freeDiameter/cnxctx.c
diffstat 1 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/cnxctx.c	Tue Feb 09 17:59:15 2010 +0900
+++ b/freeDiameter/cnxctx.c	Tue Feb 09 18:23:07 2010 +0900
@@ -667,14 +667,15 @@
 		{
 			switch (ret) {
 				case GNUTLS_E_REHANDSHAKE: 
-					CHECK_GNUTLS_DO( ret = gnutls_handshake(session),
-						{
-							if (TRACE_BOOL(INFO)) {
-								fd_log_debug("TLS re-handshake failed on socket %d (%s) : %s\n", conn->cc_socket, conn->cc_id, gnutls_strerror(ret));
-							}
-							ret = 0;
-							goto end;
-						} );
+					if (!conn->cc_closing)
+						CHECK_GNUTLS_DO( ret = gnutls_handshake(session),
+							{
+								if (TRACE_BOOL(INFO)) {
+									fd_log_debug("TLS re-handshake failed on socket %d (%s) : %s\n", conn->cc_socket, conn->cc_id, gnutls_strerror(ret));
+								}
+								ret = 0;
+								goto end;
+							} );
 
 				case GNUTLS_E_AGAIN:
 				case GNUTLS_E_INTERRUPTED:
"Welcome to our mercurial repository"