I'm adding experimental support for UDP encapsulation of SCTP packets. I got most of if working well. However, I noticed a NULL pointer dereference in sctp_packet_transmit as I assumed that packet->transport->asoc weren't NULL so I tried to access tunneling information that I store in packet->transport->asoc->ep->base.
In what circumstances is assoc NULL in sctp_packet_transmit?