Scope callout_stop drain case properly

A deadlock condition was introduced with commit 164ca60.
Essentially callout_stop was incorrectly always running the "drain"
code where it is allowed to block if curently executing.  Constrain
the behavior properly (via the CS_DRAIN flag), and cleanup one use
case.

Note: this likely restores the original race condition for which the
original set of changes were added to guard against.
2 files changed
tree: 1442a6c0e870d33b96fedf95b4d3b3fee0781546
  1. fuzzer/
  2. programs/
  3. usrsctplib/
  4. .gitignore
  5. bootstrap
  6. CMakeLists.txt
  7. configure.ac
  8. gen-def.py
  9. LICENSE.md
  10. Makefile.am
  11. Makefile.nmake
  12. Manual.md
  13. Manual.tex
  14. meson.build
  15. meson_options.txt
  16. README.md
  17. usrsctp.pc.in
README.md

usrsctp

Coverity Scan Build Status

This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.

See manual for more information.

The status of continuous integration testing is available from our Buildbot.