Clear the pointer to the socket when closing it also in case of an ungraceful operation. This fixes a use-after-free bug found and reported by Taylor Brandstetter from Google by testing the userland stack.
Clear the pointer to the socket when closing it also in case of
an ungraceful operation.
This fixes a use-after-free bug found and reported by Taylor
Brandstetter from Google by testing the userland stack.

sctplab/stream-reset-improved,sctplab/stream-reset-improved