# HG changeset patch # User Sebastien Decugis # Date 1278555142 -32400 # Node ID 918fbb92eb8bb391bd361a795e5d206919c192af # Parent 8e26b203e3cb70ed2bbed97dcd04b8fa4caf2636 Attempt to fix #6 diff -r 8e26b203e3cb -r 918fbb92eb8b freeDiameter/cnxctx.c --- 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 */