cvs commit: src/sys/netgraph ng_base.c

Gleb Smirnoff glebius at FreeBSD.org
Mon Sep 12 07:46:20 PDT 2005


glebius     2005-09-12 14:46:19 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/netgraph         ng_base.c 
  Log:
  MFC 1.112:
    Fix an item leak, that happens when some node calls ng_callout() two
    times consequently, without checking whether callout has been serviced
    or not. (ng_pptpgre and ng_ppp were catched in this behavior).
  
      - In ng_callout() save old item before calling callout_reset(). If the
        latter has returned 1, then free this item.
      - In ng_uncallout() clear c->c_arg.
  
    Problem reported by:    Alexandre Kardanev
  
  Approved by:    re (kensmith)
  
  Revision   Changes    Path
  1.102.2.5  +6 -2      src/sys/netgraph/ng_base.c


More information about the cvs-all mailing list