diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 26de4d3e1bd9cab236d563b4f17b3bbeb2be1617..dc9dff396fad7599252dd3bbff503dbdffbc7a38 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -530,6 +530,9 @@ static void sctp_v4_get_saddr(struct sctp_association *asoc, { struct rtable *rt = (struct rtable *)dst; + if (!asoc) + return; + if (rt) { saddr->v4.sin_family = AF_INET; saddr->v4.sin_port = asoc->base.bind_addr.port;