summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2007-03-22 13:21:24 +0000
committerglebius <glebius@FreeBSD.org>2007-03-22 13:21:24 +0000
commit88fc902c13d88b570a01f2ddfaea5e11847d96c5 (patch)
tree9777ba295373e3cf6062207c386dd30c26c21f03 /lib/libc/stdlib/random.c
parent060c94f5be5dc06fae3d10b45b46f15f5b349d26 (diff)
downloadFreeBSD-src-88fc902c13d88b570a01f2ddfaea5e11847d96c5.zip
FreeBSD-src-88fc902c13d88b570a01f2ddfaea5e11847d96c5.tar.gz
Move the dom_dispose and pru_detach calls in sofree() earlier. Only after
calling pru_detach we can be absolutely sure, that we don't have any references to the socket in the stack. This closes race between lockless sbdestroy() and data arriving on socket. Reviewed by: rwatson
Diffstat (limited to 'lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud