Mercurial > hg > freeDiameter
diff freeDiameter/sctp.c @ 51:08d8cbeff30b
Fix for number of args to sctp_connectx
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 27 Nov 2009 17:19:45 +0900 |
parents | 43dc87ac5e11 |
children | d847a0f6d93d |
line wrap: on
line diff
--- a/freeDiameter/sctp.c Fri Nov 27 16:45:32 2009 +0900 +++ b/freeDiameter/sctp.c Fri Nov 27 17:19:45 2009 +0900 @@ -734,7 +734,11 @@ /* Try connecting */ TRACE_DEBUG(FULL, "Attempting SCTP connection (%d addresses attempted)...", count); +#ifdef SCTP_CONNECTX_4_ARGS CHECK_SYS_DO( sctp_connectx(*sock, sar.sa, count, NULL), { ret = errno; goto fail; } ); +#else /* SCTP_CONNECTX_4_ARGS */ + CHECK_SYS_DO( sctp_connectx(*sock, sar.sa, count), { ret = errno; goto fail; } ); +#endif /* SCTP_CONNECTX_4_ARGS */ free(sar.buf); sar.buf = NULL; /* Set the remaining sockopts */