[ipfilter-cvs] ipfilter fil.c,
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2014-06-15 12:08:59
|
Update of /cvsroot/ipfilter/ipfilter In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv6616 Modified Files: fil.c Log Message: #550 filter rule list corrupted with inserted rules Index: fil.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/fil.c,v retrieving revision 1.127 retrieving revision 1.128 diff -C2 -d -r1.127 -r1.128 *** fil.c 13 Aug 2012 11:42:00 -0000 1.127 --- fil.c 15 Jun 2014 12:08:57 -0000 1.128 *************** *** 4488,4492 **** --- 4488,4500 ---- fp = f; f = NULL; + fp->fr_next = NULL; fp->fr_dnext = NULL; + fp->fr_pnext = NULL; + fp->fr_pdnext = NULL; + fp->fr_grp = NULL; + fp->fr_grphead = NULL; + fp->fr_icmpgrp = NULL; + fp->fr_isc = (void *)-1; + fp->fr_ptr = NULL; fp->fr_ref = 0; fp->fr_flags |= FR_COPIED; *************** *** 4991,4995 **** --- 4999,5005 ---- break; ftail = &f->fr_next; + fprev = ftail; } + ftail = fprev; f = NULL; ptr = NULL; *************** *** 5082,5085 **** --- 5092,5097 ---- fp->fr_pnext = ftail; fp->fr_next = *ftail; + if (fp->fr_next != NULL) + fp->fr_next->fr_pnext = &fp->fr_next; *ftail = fp; |