diff options
author | jhb <jhb@FreeBSD.org> | 2009-09-10 12:58:37 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-09-10 12:58:37 +0000 |
commit | cedb32d24aa57ad6f241ae194a01bd194a10e0d5 (patch) | |
tree | ebf45e94c89fac9c31d2246b25dea1f9f46b8072 /sys/compat | |
parent | b9f96dd3c05dc496081fe2e9cf86821da07743bc (diff) | |
download | FreeBSD-src-cedb32d24aa57ad6f241ae194a01bd194a10e0d5.zip FreeBSD-src-cedb32d24aa57ad6f241ae194a01bd194a10e0d5.tar.gz |
Don't malloc a buffer while holding the prison0 mutex. Instead, use a loop
where we figure out the hostname length under the lock, malloc the buffer
with the lock dropped, then recheck the length under the lock and loop again
if the buffer is now too small.
Tested by: Norbert Koch nkoch demig de
MFC after: 3 days
Diffstat (limited to 'sys/compat')
0 files changed, 0 insertions, 0 deletions