diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-03-25 02:44:43 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-03-25 02:44:43 +0000 |
commit | 98b7d767f9e42dade8b53484c87631ae79c31191 (patch) | |
tree | c49828174e9c2a4ff924a8999785e8dd87514453 /sys | |
parent | c97ded69a1166774c30654b41b463eb26177f9d6 (diff) |
Don't set pbp to point to free memory. Thanks to Dawson Engler and team
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/bpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index e13c4202bd7..e93575c22f3 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.23 2001/03/13 05:09:51 mickey Exp $ */ +/* $OpenBSD: bpf.c,v 1.24 2001/03/25 02:44:42 csapuntz Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -1251,8 +1251,8 @@ bpfdetach(ifp) } free(bp, M_DEVBUF); - } - pbp = &bp->bif_next; + } else + pbp = &bp->bif_next; } ifp->if_bpf = NULL; } |