Skip to content

Commit

Permalink
always free iproute (if it was used) regardless of the IPSEC kernel
Browse files Browse the repository at this point in the history
compilation option.
this should be a better fix to FreeBSD-SA-02:21.tcpip.
  • Loading branch information
jinmei committed Apr 18, 2002
1 parent ce92a69 commit 0b5c98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freebsd4/sys/netinet/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,11 +971,11 @@ ip_output(m0, opt, ro, flags, imo)
ipstat.ips_fragmented++;
}
done:
#ifdef IPSEC
if (ro == &iproute && ro->ro_rt) {
RTFREE(ro->ro_rt);
ro->ro_rt = NULL;
}
#ifdef IPSEC
if (sp != NULL) {
KEYDEBUG(KEYDEBUG_IPSEC_STAMP,
printf("DP ip_output call free SP:%p\n", sp));
Expand Down

0 comments on commit 0b5c98c

Please sign in to comment.