diff freeDiameter/cnxctx.c @ 38:68c1890f7049

Fixed a small bug in SCTP close
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 05 Nov 2009 17:29:12 +0900
parents 26685c67d387
children 2db15632a63d
line wrap: on
line diff
--- a/freeDiameter/cnxctx.c	Thu Nov 05 14:28:46 2009 +0900
+++ b/freeDiameter/cnxctx.c	Thu Nov 05 17:29:12 2009 +0900
@@ -1143,6 +1143,8 @@
 	/* Shut the connection down */
 	if (conn->cc_socket > 0) {
 		shutdown(conn->cc_socket, SHUT_RDWR);
+		close(conn->cc_socket);
+		conn->cc_socket = -1;
 	}
 	
 	/* Empty and destroy FIFO list */
"Welcome to our mercurial repository"