summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-05-07 21:20:06 +0000
committerschwarze <schwarze@openbsd.org>2014-05-07 21:20:06 +0000
commitca01651ad1a4d482c3eca2b36fed210c15c50f1d (patch)
treed91ece38ea6178c796d02bacdced75d6334afb60 /lib/libc/stdlib/reallocarray.c
parentdon't free memory unless we allocated it. (diff)
downloadwireguard-openbsd-ca01651ad1a4d482c3eca2b36fed210c15c50f1d.tar.xz
wireguard-openbsd-ca01651ad1a4d482c3eca2b36fed210c15c50f1d.zip
Repair the termination condition of a write(2) loop.
Since _PATH_MASTERPASSWD_LOCK is on a local file system in any sane setup and written to in blocking mode, i don't see how write(2) could return before having written everything, so this maybe wasn't an actual bug, but it should be repaired anyway, if only for clarity and extra safety. From Ben Cornett <ben at lantern dot is>; ok millert@.
Diffstat (limited to 'lib/libc/stdlib/reallocarray.c')
0 files changed, 0 insertions, 0 deletions