git: socket: Reorder state setting a little bit in sonewconn_faddr()

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri Aug 21 08:36:04 PDT 2015


commit e994cde3965c1bb90998a0c781fde48e46e0fabc
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Aug 21 23:14:10 2015 +0800

    socket: Reorder state setting a little bit in sonewconn_faddr()
    
    This prevents several possible races.

Summary of changes:
 sys/kern/uipc_socket2.c | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e994cde3965c1bb90998a0c781fde48e46e0fabc


-- 
DragonFly BSD source repository



More information about the Commits mailing list