P1sec / pysctp

SCTP stack for Python
http://www.p1sec.com
161 stars 67 forks source link

_sctp.c - flags should be 0 #11

Closed di98jgu closed 6 years ago

di98jgu commented 11 years ago

The function sctp_recvmsg do not block as it should.

Found this: lakerest.net/pipermail/sctp-coders/2008-April/006112.html

" The msg_flags needs to be initialized. Its an in-out parameter and thus its looked at. I have no idea what is in the msg_flags field when you call it...

The missing init in UNP is my oversight combined with a bug that was fixed in FreeBSD about a year ago (ie. it ignored msg_flags on input). "

This is apparently true on older Linux systems as well. Same code?

p1-bmu commented 6 years ago

This has been fixed in recent commits. Thanks for the submission