diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index c6cefc4c19cb..9877964b809c 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -136,7 +136,6 @@ ip_output(m0, opt, ro, flags, imo, inp) #ifdef IPSEC struct route iproute; struct secpolicy *sp = NULL; - struct socket *so = inp ? inp->inp_socket : NULL; #endif #ifdef FAST_IPSEC struct route iproute; diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 2b22088e357a..b18f9a72e5c7 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -181,7 +181,6 @@ ip6_output(m0, opt, ro, flags, im6o, ifpp, inp) #ifdef IPSEC int needipsectun = 0; struct secpolicy *sp = NULL; - struct socket *so = inp ? inp->inp_socket : NULL; ip6 = mtod(m, struct ip6_hdr *); #endif /* IPSEC */