summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_gre.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-01-03 10:52:22 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-01-03 10:52:22 +0000
commitcf5fea89a275c7dd03fb19baaf5bd6e96253a853 (patch)
treed8a92b2536161870338ecfa4ef157498588d5d1e /sys/netinet/ip_gre.c
parent8f2e139d9449860591ef2a265edc7d31c2cdd3ac (diff)
Remove some recursives splsoftnet().
ok visa@, mikeb@
Diffstat (limited to 'sys/netinet/ip_gre.c')
-rw-r--r--sys/netinet/ip_gre.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet/ip_gre.c b/sys/netinet/ip_gre.c
index b54fb99b64d..58dee961cfe 100644
--- a/sys/netinet/ip_gre.c
+++ b/sys/netinet/ip_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_gre.c,v 1.59 2016/03/04 22:38:23 sashan Exp $ */
+/* $OpenBSD: ip_gre.c,v 1.60 2017/01/03 10:52:21 mpi Exp $ */
/* $NetBSD: ip_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -411,12 +411,10 @@ gre_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
struct inpcb *inp = sotoinpcb(so);
if (inp != NULL && inp->inp_pipex && req == PRU_SEND) {
- int s;
struct sockaddr_in *sin4;
struct in_addr *ina_dst;
struct pipex_session *session;
- s = splsoftnet();
ina_dst = NULL;
if ((so->so_state & SS_ISCONNECTED) != 0) {
inp = sotoinpcb(so);
@@ -432,7 +430,6 @@ gre_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
(session = pipex_pptp_userland_lookup_session_ipv4(m,
*ina_dst)))
m = pipex_pptp_userland_output(m, session);
- splx(s);
if (m == NULL)
return (ENOMEM);