diff options
author | 2002-07-24 19:53:50 +0000 | |
---|---|---|
committer | 2002-07-24 19:53:50 +0000 | |
commit | b1f6b19767b9e5ace57cdaf723a422fde3f45f11 (patch) | |
tree | 99ea9a9d56813f3202a75e08b9b73fc8c3b87ccb /lib/libc | |
parent | nuke debugging cruft (diff) | |
download | wireguard-openbsd-b1f6b19767b9e5ace57cdaf723a422fde3f45f11.tar.xz wireguard-openbsd-b1f6b19767b9e5ace57cdaf723a422fde3f45f11.zip |
Fix a bug I inadvertanly introduced while fixing the last problem in here.
The item list really did want to be zero-filled since free_items() relies
on this to find the end point. However, this is really pretty dumb since
we *know* how many items are in the list.
This highlights the elusive bug I was trying to fix--free_items() expects
the list to be NULL-terminated which was not the case if the list was full.
The fix is to simply pass free_items() the number of elements in the list.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions