git: udp/usrreq: Fix up cleanup so_pcb checks

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Oct 20 19:43:47 PDT 2015


commit d6ed19698c7b53e96dcd0cdc9d7dec2d5b4de4ea
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Oct 21 10:41:51 2015 +0800

    udp/usrreq: Fix up cleanup so_pcb checks
    
    - pru_attach must not be called twice, so so_pcb must be NULL.
    - Check so_pcb in udp_ctloutput; this prepares asynchronized udp
      pru_attach.

Summary of changes:
 sys/netinet/udp_usrreq.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list