Don't keep pointer to memory which was freed.
git-svn-id: http://sctp-refimpl.googlecode.com/svn/trunk@8457 9df1edf5-d72c-5b5f-11c0-5f5209eb73f7
diff --git a/KERN/netinet/sctp_output.c b/KERN/netinet/sctp_output.c
index 3307b45..cb68042 100755
--- a/KERN/netinet/sctp_output.c
+++ b/KERN/netinet/sctp_output.c
@@ -4736,6 +4736,7 @@
#else
if (ro->ro_rt) {
RTFREE(ro->ro_rt);
+ ro->ro_rt = NULL;
}
#endif
} else {
@@ -11508,6 +11509,7 @@
/* Free the route if we got one back */
if (ro.ro_rt) {
RTFREE(ro.ro_rt);
+ ro.ro_rt = NULL;
}
#else
SCTP_IP_OUTPUT(ret, o_pak, NULL, NULL, vrf_id);