artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0e197b
)
Set re_rt to NULL, so we don't double free.
author
angelos
<angelos@openbsd.org>
Thu, 30 Mar 2000 04:53:36 +0000
(
04:53
+0000)
committer
angelos
<angelos@openbsd.org>
Thu, 30 Mar 2000 04:53:36 +0000
(
04:53
+0000)
sys/netinet/ip_output.c
patch
|
blob
|
history
diff --git
a/sys/netinet/ip_output.c
b/sys/netinet/ip_output.c
index
605f1e5
..
b422090
100644
(file)
--- a/
sys/netinet/ip_output.c
+++ b/
sys/netinet/ip_output.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ip_output.c,v 1.6
5 2000/03/17 10:25:22
angelos Exp $ */
+/* $OpenBSD: ip_output.c,v 1.6
6 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);