Author: tuexen
Date: Mon Jul  8 13:22:58 2013
New Revision: 253034
URL: http://svnweb.freebsd.org/changeset/base/253034

Log:
  Don't keep a pointer to freed memory.
  This is a direct commit, since this code is gone in head.

Modified:
  stable/8/sys/netinet/sctp_output.c

Modified: stable/8/sys/netinet/sctp_output.c
==============================================================================
--- stable/8/sys/netinet/sctp_output.c  Mon Jul  8 12:17:06 2013        
(r253033)
+++ stable/8/sys/netinet/sctp_output.c  Mon Jul  8 13:22:58 2013        
(r253034)
@@ -4487,6 +4487,7 @@ sctp_lowlevel_chunk_output(struct sctp_i
                                /* Now if we had a temp route free it */
                                if (ro->ro_rt) {
                                        RTFREE(ro->ro_rt);
+                                       ro->ro_rt = NULL;
                                }
                        } else {
                                /*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to