diff options
author | 2007-10-05 16:46:30 +0000 | |
---|---|---|
committer | 2007-10-05 16:46:30 +0000 | |
commit | 4b0bef0f0fdd51a4d30f94f44bc6bdd2e3a9c111 (patch) | |
tree | e8dd5e2509a4663fee4129bb7fffa8c463aa3a3a /sys/dev/isa/if_ex.c | |
parent | fix by actually using pcc (diff) | |
download | wireguard-openbsd-4b0bef0f0fdd51a4d30f94f44bc6bdd2e3a9c111.tar.xz wireguard-openbsd-4b0bef0f0fdd51a4d30f94f44bc6bdd2e3a9c111.zip |
MALLOC/FREE -> malloc/free + M_ZERO.
As a side effect, this probably fixes PR5596, if the allocation
of dh_hash succeeds and the dh_blkfree fails, we jump into the
fail case, but we haven't initialized dh_hash properly, that is
filling the array with memory from the dirhash pool, but the
!= NULL check holds, since the memory hasn't been zeroed and
so we start pool_put()'ing, causing the crash in PR5596.
PR5596 debugging by pedro.
ok art@, krw@
Diffstat (limited to 'sys/dev/isa/if_ex.c')
0 files changed, 0 insertions, 0 deletions