artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27523f5
)
Return the poison value in poison_check() and not the modified value.
author
mpi
<mpi@openbsd.org>
Mon, 13 Jan 2014 09:27:39 +0000
(09:27 +0000)
committer
mpi
<mpi@openbsd.org>
Mon, 13 Jan 2014 09:27:39 +0000
(09:27 +0000)
ok tedu@
sys/kern/subr_poison.c
patch
|
blob
|
history
diff --git
a/sys/kern/subr_poison.c
b/sys/kern/subr_poison.c
index
7ead1d5
..
6209062
100644
(file)
--- a/
sys/kern/subr_poison.c
+++ b/
sys/kern/subr_poison.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: subr_poison.c,v 1.
5 2013/05/31 18:29:32 deraadt
Exp $ */
+/* $OpenBSD: subr_poison.c,v 1.
6 2014/01/13 09:27:39 mpi
Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@
-77,7
+77,7
@@
poison_check(void *v, size_t len, size_t *pidx, int *pval)
for (i = 0; i < len; i++) {
if (ip[i] != poison) {
*pidx = i;
- *pval =
ip[i]
;
+ *pval =
poison
;
return 1;
}
}