/[pkgs]/devel/dhcp/dhcp-4.1.0-memory.patch
ViewVC logotype

Contents of /devel/dhcp/dhcp-4.1.0-memory.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Tue Jan 6 23:46:51 2009 UTC (10 months, 2 weeks ago) by dcantrel
Branch: MAIN
CVS Tags: F-12-split, dhcp-4_1_0-3_fc11, dhcp-4_1_0-2_fc11, dhcp-4_1_0-22_fc12, dhcp-4_1_0-1_fc11, dhcp-4_1_0-20_fc12, dhcp-4_1_0p1-5_fc12, dhcp-4_1_0-16_fc11, dhcp-4_1_0p1-13_fc13, dhcp-4_1_0-11_fc11, dhcp-4_1_0p1-11_fc12, dhcp-4_1_0-10_fc11, dhcp-4_1_0-15_fc11, dhcp-4_1_0-12_fc11, dhcp-4_1_0-14_fc11, F-11-split, dhcp-4_1_0p1-6_fc12, dhcp-4_1_0p1-7_fc12, dhcp-4_1_0p1-8_fc12, dhcp-4_1_0-4_fc11, dhcp-4_1_0p1-4_fc12, dhcp-4_1_0-13_fc11, dhcp-4_1_0-18_fc12, dhcp-4_1_0p1-14_fc13, dhcp-4_1_0-23_fc12, dhcp-4_1_0-6_fc11, dhcp-4_1_0-17_fc12, dhcp-4_1_0-19_fc12, dhcp-4_1_0p1-1_fc12, dhcp-4_1_0p1-3_fc12, dhcp-4_1_0p1-9_fc12, dhcp-4_1_0-9_fc11, dhcp-4_1_0p1-12_fc13, dhcp-4_1_0-26_fc12, dhcp-4_1_0p1-10_fc12, dhcp-4_1_0-8_fc11, dhcp-4_1_0-5_fc11, dhcp-4_1_0-25_fc12, dhcp-4_1_0-24_fc12, dhcp-4_1_0-7_fc11, dhcp-4_1_0-27_fc12, dhcp-4_1_0-21_fc12, dhcp-4_1_0p1-2_fc12, HEAD
File MIME type: text/x-patch
* Tue Jan 06 2009 David Cantrell <dcantrell@redhat.com> - 12:4.1.0-1
- Upgraded to ISC dhcp-4.1.0
- Had to rename the -T option to -timeout as ISC is now using -T
- Allow package rebuilders to easily enable DHCPv6 support with:
      rpmbuild --with DHCPv6 dhcp.spec
  Note that Fedora is still using the 'dhcpv6' package, but some
  users may want to experiment with the ISC DHCPv6 implementation
  locally.
1 diff -up dhcp-4.1.0/common/lpf.c.memory dhcp-4.1.0/common/lpf.c
2 --- dhcp-4.1.0/common/lpf.c.memory 2008-03-18 08:28:14.000000000 -1000
3 +++ dhcp-4.1.0/common/lpf.c 2009-01-06 07:57:54.000000000 -1000
4 @@ -247,6 +247,7 @@ static void lpf_tr_filter_setup (info)
5 struct interface_info *info;
6 {
7 struct sock_fprog p;
8 + memset(&p,'\0', sizeof(struct sock_fprog));
9
10 /* Set up the bpf filter program structure. This is defined in
11 bpf.c */
12 diff -up dhcp-4.1.0/common/packet.c.memory dhcp-4.1.0/common/packet.c
13 --- dhcp-4.1.0/common/packet.c.memory 2007-11-30 11:51:43.000000000 -1000
14 +++ dhcp-4.1.0/common/packet.c 2009-01-06 07:57:54.000000000 -1000
15 @@ -135,6 +135,7 @@ void assemble_udp_ip_header (interface,
16 struct ip ip;
17 struct udphdr udp;
18
19 + memset( &ip, '\0', sizeof ip);
20 /* Fill out the IP header */
21 IP_V_SET (&ip, 4);
22 IP_HL_SET (&ip, 20);
23 diff -up dhcp-4.1.0/minires/ns_name.c.memory dhcp-4.1.0/minires/ns_name.c
24 --- dhcp-4.1.0/minires/ns_name.c.memory 2005-03-17 10:15:17.000000000 -1000
25 +++ dhcp-4.1.0/minires/ns_name.c 2009-01-06 07:57:54.000000000 -1000
26 @@ -71,6 +71,11 @@ ns_name_ntop(const u_char *src, char *ds
27 dn = dst;
28 eom = dst + dstsiz;
29
30 + if (dn >= eom) {
31 + errno = EMSGSIZE;
32 + return (-1);
33 + }
34 +
35 while ((n = *cp++) != 0) {
36 if ((n & NS_CMPRSFLGS) != 0) {
37 /* Some kind of compression pointer. */

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2