diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2007-12-02 11:56:30 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2007-12-02 11:56:30 +0000 |
commit | beef565914ee34a85d985054e7fc919911e9a2a6 (patch) | |
tree | abaad6c83c4a6f56321b543515358d45cc1ebf94 | |
parent | de3c6b8c2b430a19b7a22fb249e46e8d933ede16 (diff) |
initialize altq->altq_disc to NULL, from Max Laier
-rw-r--r-- | sys/net/pf_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index e001cd22ccb..a04bc5a9493 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.190 2007/12/02 11:53:06 pascoe Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.191 2007/12/02 11:56:29 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1964,6 +1964,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) pool_put(&pf_altq_pl, altq); break; } + altq->altq_disc = NULL; TAILQ_FOREACH(a, pf_altqs_inactive, entries) { if (strncmp(a->ifname, altq->ifname, IFNAMSIZ) == 0 && a->qname[0] == 0) { |