Skip to content

Commit

Permalink
Merge pull request #68 from sctplab/Issue66
Browse files Browse the repository at this point in the history
Issue66
  • Loading branch information
tuexen committed Apr 8, 2016
2 parents d75dc0c + d553a03 commit f4e14ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dnl OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
dnl SUCH DAMAGE.
dnl

AC_INIT([libusrsctp], [0.9.2.1])
AC_INIT([libusrsctp], [0.9.3.0])
AM_INIT_AUTOMAKE

AC_PROG_CC
Expand Down
4 changes: 3 additions & 1 deletion usrsctplib/netinet/sctp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#ifdef __FreeBSD__
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: head/sys/netinet/sctp_output.c 297312 2016-03-27 10:04:25Z tuexen $");
__FBSDID("$FreeBSD: head/sys/netinet/sctp_output.c 297497 2016-04-01 20:38:15Z tuexen $");
#endif

#include <netinet/sctp_os.h>
Expand Down Expand Up @@ -9410,6 +9410,8 @@ sctp_queue_op_err(struct sctp_tcb *stcb, struct mbuf *op_err)
chk->asoc = &stcb->asoc;
chk->data = op_err;
chk->whoTo = NULL;
chk->rec.chunk_id.id = SCTP_OPERATION_ERROR;
chk->rec.chunk_id.can_take_data = 0;
hdr = mtod(op_err, struct sctp_chunkhdr *);
hdr->chunk_type = SCTP_OPERATION_ERROR;
hdr->chunk_flags = 0;
Expand Down
4 changes: 2 additions & 2 deletions usrsctplib/netinet/sctp_usrreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ sctp_init(void)
sctp_init_sysctls();
#if defined(__Userspace__)
#if defined(__Userspace_os_Windows) || defined(__Userspace_os_NaCl)
srand((unsigned int)time(NULL));
srandom((unsigned int)GetCurrentProcessId() ^ (unsigned int)time(NULL));
#else
srandom(getpid()); /* so inp->sctp_ep.random_numbers are truly random... */
srandom((unsigned int)getpid() ^ (unsigned int)time(NULL));
#endif
#endif
#if defined(__Panda__)
Expand Down

0 comments on commit f4e14ab

Please sign in to comment.