summaryrefslogtreecommitdiffstats
path: root/sys/net/hfsc.c
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2017-07-19 13:41:20 +0000
committermikeb <mikeb@openbsd.org>2017-07-19 13:41:20 +0000
commit6bef90cf86dae4777b90bc36a4c4aaba0571ec4c (patch)
treea4e60e4806ae575d045e55a27cb8696dcc216f6b /sys/net/hfsc.c
parentAvoid division by zero of vnd_secsize (diff)
downloadwireguard-openbsd-6bef90cf86dae4777b90bc36a4c4aaba0571ec4c.tar.xz
wireguard-openbsd-6bef90cf86dae4777b90bc36a4c4aaba0571ec4c.zip
Fix the test condition weakened a recent change
Diffstat (limited to 'sys/net/hfsc.c')
-rw-r--r--sys/net/hfsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/hfsc.c b/sys/net/hfsc.c
index 6e67243b0ee..6f9c9edf4ff 100644
--- a/sys/net/hfsc.c
+++ b/sys/net/hfsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hfsc.c,v 1.42 2017/07/19 12:54:09 mikeb Exp $ */
+/* $OpenBSD: hfsc.c,v 1.43 2017/07/19 13:41:20 mikeb Exp $ */
/*
* Copyright (c) 2012-2013 Henning Brauer <henning@openbsd.org>
@@ -772,7 +772,7 @@ hfsc_class_destroy(struct hfsc_if *hif, struct hfsc_class *cl)
hif->hif_defaultclass = NULL;
/* Free external queue manager resources */
- if (cl->cl_qops != pfq_hfsc_ops)
+ if (cl->cl_qops && cl->cl_qops != pfq_hfsc_ops)
cl->cl_qops->pfq_free(cl->cl_qdata);
if (cl->cl_usc != NULL)