[ipfilter-cvs] ipfilter/tools ipnat_y.y,v5-1-RELEASE
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2014-06-08 14:46:01
|
Update of /cvsroot/ipfilter/ipfilter/tools In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17069/tools Modified Files: Tag: v5-1-RELEASE ipnat_y.y Log Message: #547 rule parsing puts junk at the end of ipf rules Index: ipnat_y.y =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/tools/ipnat_y.y,v retrieving revision 1.19.2.14 retrieving revision 1.19.2.15 diff -C2 -d -r1.19.2.14 -r1.19.2.15 *** ipnat_y.y 25 Aug 2012 14:14:08 -0000 1.19.2.14 --- ipnat_y.y 8 Jun 2014 14:45:58 -0000 1.19.2.15 *************** *** 1766,1770 **** nlen = strlen(name) + 1; ! n = realloc(*np, (*np)->in_size + nlen); if (*np == nattop) nattop = n; --- 1766,1772 ---- nlen = strlen(name) + 1; ! n = calloc(1, (*np)->in_size + nlen); ! bcopy(*np, n, (*np)->in_size + nlen); ! free(*np); if (*np == nattop) nattop = n; |