diff --git a/net/sctp/output.c b/net/sctp/output.c index c3b85497d0ab..6d56eec5785f 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c @@ -587,7 +587,9 @@ out: return err; no_route: kfree_skb(nskb); - IP_INC_STATS(&init_net, IPSTATS_MIB_OUTNOROUTES); + + if (asoc) + IP_INC_STATS(&init_net, IPSTATS_MIB_OUTNOROUTES); /* FIXME: Returning the 'err' will effect all the associations * associated with a socket, although only one of the paths of the