diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-03-30 04:53:37 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-03-30 04:53:37 +0000 |
commit | 63a35f46793f2bf57042b9204f7243ffee3b4d9f (patch) | |
tree | f930d86a12839cf6759cb5e0dc763c4fcfb8ffac /sys/netinet | |
parent | 5b8377c566ffa880286072fc625cd1bc8386de14 (diff) |
Set re_rt to NULL, so we don't double free.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_output.c | 6 |
1 files 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); |