Thread: [ipfilter-cvs] ipfilter/lib gethost.c,v5-1-RELEASE
Brought to you by:
darren_r
From: Darren <dar...@us...> - 2012-08-25 14:16:43
|
Update of /cvsroot/ipfilter/ipfilter/lib In directory vz-cvs-4.sog:/tmp/cvs-serv20303/lib Modified Files: Tag: v5-1-RELEASE gethost.c Log Message: 3561690 ipv6 address for test.hosts.dots in wrong byte order Index: gethost.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/lib/gethost.c,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** gethost.c 22 Jul 2012 08:04:24 -0000 1.8.2.2 --- gethost.c 25 Aug 2012 14:16:41 -0000 1.8.2.3 *************** *** 24,31 **** #ifdef USE_INET6 if (family == AF_INET6) { ! hostp->i6[0] = 0xfe80aa55; ! hostp->i6[1] = 0x12345678; ! hostp->i6[2] = 0x5a5aa5a5; ! hostp->i6[3] = 0xfedcba98; } #endif --- 24,31 ---- #ifdef USE_INET6 if (family == AF_INET6) { ! hostp->i6[0] = htonl(0xfe80aa55); ! hostp->i6[1] = htonl(0x12345678); ! hostp->i6[2] = htonl(0x5a5aa5a5); ! hostp->i6[3] = htonl(0xfedcba98); } #endif |
From: Darren <dar...@us...> - 2014-06-20 16:43:00
|
Update of /cvsroot/ipfilter/ipfilter/lib In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1917/lib Modified Files: Tag: v5-1-RELEASE gethost.c Log Message: #553 gethost needs to zero entire IP address structure Index: gethost.c =================================================================== RCS file: /cvsroot/ipfilter/ipfilter/lib/gethost.c,v retrieving revision 1.8.2.3 retrieving revision 1.8.2.4 diff -C2 -d -r1.8.2.3 -r1.8.2.4 *** gethost.c 25 Aug 2012 14:16:41 -0000 1.8.2.3 --- gethost.c 20 Jun 2014 16:42:58 -0000 1.8.2.4 *************** *** 18,21 **** --- 18,22 ---- u_32_t addr; + bzero(hostp, sizeof(*hostp)); if (!strcmp(name, "test.host.dots")) { if (family == AF_INET) { |