From 15fb8d2f3432a22ca2c4df3c4481e8b505988cb8 Mon Sep 17 00:00:00 2001 From: angelos Date: Thu, 30 Mar 2000 04:53:36 +0000 Subject: [PATCH] Set re_rt to NULL, so we don't double free. --- sys/netinet/ip_output.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 605f1e50885..b422090adf0 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.65 2000/03/17 10:25:22 angelos Exp $ */ +/* $OpenBSD: ip_output.c,v 1.66 2000/03/30 04:53:36 angelos Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -645,8 +645,10 @@ sendit: } /* We don't need this anymore */ - if (re->re_rt) + if (re->re_rt) { RTFREE(re->re_rt); + re->re_rt = NULL; + } /* Massage the IP header for use by the IPsec code */ ip->ip_len = htons((u_short) ip->ip_len); -- 2.20.1