sctplab / sctp-idata

Developing support for draft-ietf-tsvwg-sctp-ndata
BSD 2-Clause "Simplified" License
6 stars 3 forks source link

Fix to avoid space_left underflow #20

Closed msvoelker closed 4 years ago

msvoelker commented 4 years ago

src/netinet/sctp_output.c In function sctp_fill_outqueue the variable space_left is decremented by the variable moved without a check for an underflow. This pull request adds the check.

tuexen commented 4 years ago

Manually committed. Thanks a lot for the contribution.