changeset 396:918fbb92eb8b

Attempt to fix #6
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 08 Jul 2010 11:12:22 +0900
parents 8e26b203e3cb
children 0c91b5bf19b1
files freeDiameter/cnxctx.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/cnxctx.c	Wed Jul 07 17:53:18 2010 +0900
+++ b/freeDiameter/cnxctx.c	Thu Jul 08 11:12:22 2010 +0900
@@ -273,10 +273,12 @@
 	if (cli->cc_proto == IPPROTO_SCTP) {
 		/* Retrieve the number of streams */
 		CHECK_FCT_DO( fd_sctp_get_str_info( cli->cc_socket, &cli->cc_sctp_para.str_in, &cli->cc_sctp_para.str_out, NULL ), goto error );
-		if (cli->cc_sctp_para.str_out > cli->cc_sctp_para.str_in)
+		if (cli->cc_sctp_para.str_out < cli->cc_sctp_para.str_in)
 			cli->cc_sctp_para.pairs = cli->cc_sctp_para.str_out;
 		else
 			cli->cc_sctp_para.pairs = cli->cc_sctp_para.str_in;
+		
+		TRACE_DEBUG(FULL,"%s : client '%s' (SCTP:%d, %d/%d streams)", fd_cnx_getid(serv), fd_cnx_getid(cli), cli->cc_socket, cli->cc_sctp_para.str_in, cli->cc_sctp_para.str_out);
 	}
 #endif /* DISABLE_SCTP */
 
"Welcome to our mercurial repository"