summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2007-09-01 15:28:39 +0000
committerthib <thib@openbsd.org>2007-09-01 15:28:39 +0000
commitfb66848f67fbd89ca0716727e5da0fff379f7dc3 (patch)
treea5c6a89b0ebcbf90200053d52028ccc51e99fa0a
parentreplace the machine dependant bytes-to-clicks macro by the MI ptoa() (diff)
downloadwireguard-openbsd-fb66848f67fbd89ca0716727e5da0fff379f7dc3.tar.xz
wireguard-openbsd-fb66848f67fbd89ca0716727e5da0fff379f7dc3.zip
fix a use after free case.
From Bret Lambert via deraadt@; ok miod@
-rw-r--r--sys/dev/ccd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c
index 89c0f9d1b20..142f6149a62 100644
--- a/sys/dev/ccd.c
+++ b/sys/dev/ccd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ccd.c,v 1.78 2007/06/20 18:15:46 deraadt Exp $ */
+/* $OpenBSD: ccd.c,v 1.79 2007/09/01 15:28:39 thib Exp $ */
/* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */
/*-
@@ -953,9 +953,9 @@ ccdiodone(struct buf *vbp)
count = vbp->b_bcount;
- putccdbuf(cbp);
if (cbp->cb_dep)
putccdbuf(cbp->cb_dep);
+ putccdbuf(cbp);
/*
* If all done, "interrupt".