Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jul 2011 18:38:10 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/netgraph ng_socket.c
Message-ID:  <201107141838.p6EIcXiZ029101@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
glebius     2011-07-14 18:38:10 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_socket.c 
  Log:
  SVN rev 224031 on 2011-07-14 18:38:10Z by glebius
  
  In ng_attach_cntl() first allocate things that may fail, and then
  do the rest of initialization. This simplifies code and fixes
  a double free in failure scenario.
  
  Reviewed by:    bz
  
  Revision  Changes    Path
  1.93      +15 -16    src/sys/netgraph/ng_socket.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107141838.p6EIcXiZ029101>