FreeBSD/patches/344356.patch

19 lines
420 B
Diff
Raw Permalink Normal View History

2020-02-25 11:28:31 -08:00
--- sys/netinet/in_pcb.c 2019/02/20 10:03:03 344355
+++ sys/netinet/in_pcb.c 2019/02/20 10:22:48 344356
@@ -1566,6 +1566,7 @@
inp = __containerof(ctx, struct inpcb, inp_epoch_ctx);
INP_WLOCK(inp);
+ CURVNET_SET(inp->inp_vnet);
#ifdef INET
struct ip_moptions *imo = inp->inp_moptions;
inp->inp_moptions = NULL;
@@ -1598,6 +1599,7 @@
#ifdef INET
inp_freemoptions(imo);
#endif
+ CURVNET_RESTORE();
}
/*