summaryrefslogtreecommitdiff
path: root/sys/net/if_pflow.c
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2017-05-27 21:44:23 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2017-05-27 21:44:23 +0000
commit06ac1897470835d1933d8411eece67292f59fad2 (patch)
tree3e8c9918094784c99cd6a9f13308d2f0f9aefc4f /sys/net/if_pflow.c
parent89778bd3d5098ae3d1b65ebffb83d92e8e579dd3 (diff)
fix previous as noted by mpi, thx florian
Diffstat (limited to 'sys/net/if_pflow.c')
-rw-r--r--sys/net/if_pflow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_pflow.c b/sys/net/if_pflow.c
index 708840c4c32..0323ad12542 100644
--- a/sys/net/if_pflow.c
+++ b/sys/net/if_pflow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflow.c,v 1.77 2017/05/27 21:06:06 benno Exp $ */
+/* $OpenBSD: if_pflow.c,v 1.78 2017/05/27 21:44:22 benno Exp $ */
/*
* Copyright (c) 2011 Florian Obser <florian@narrans.de>
@@ -128,7 +128,7 @@ pflow_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
void
pflow_output_process(void *arg)
{
- struct pflow_softc *sc = arg;
+ struct pflow_softc *sc = arg;
struct mbuf *m;
KERNEL_LOCK();
@@ -288,6 +288,7 @@ pflow_clone_destroy(struct ifnet *ifp)
timeout_del(&sc->sc_tmo_tmpl);
pflow_flush(sc);
task_del(softnettq, &sc->sc_outputtask);
+ ml_purge(&sc->sc_outputqueue);
m_freem(sc->send_nam);
if (sc->so != NULL) {
error = soclose(sc->so);