Mercurial > hg > freeDiameter
diff freeDiameter/cnxctx.c @ 402:1e1dc47ef241
Fix remaining problem, closes #6
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 08 Jul 2010 12:50:10 +0900 |
parents | 918fbb92eb8b |
children | 26aafbbc1640 |
line wrap: on
line diff
--- a/freeDiameter/cnxctx.c Thu Jul 08 12:43:25 2010 +0900 +++ b/freeDiameter/cnxctx.c Thu Jul 08 12:50:10 2010 +0900 @@ -403,7 +403,7 @@ /* Retrieve the number of streams and primary address */ CHECK_FCT_DO( fd_sctp_get_str_info( sock, &cnx->cc_sctp_para.str_in, &cnx->cc_sctp_para.str_out, &primary ), goto error ); - if (cnx->cc_sctp_para.str_out > cnx->cc_sctp_para.str_in) + if (cnx->cc_sctp_para.str_out < cnx->cc_sctp_para.str_in) cnx->cc_sctp_para.pairs = cnx->cc_sctp_para.str_out; else cnx->cc_sctp_para.pairs = cnx->cc_sctp_para.str_in;