Репозитории ALT
S: | 4.4.3.P1-alt1 |
5.1: | 3.0.7-alt4 |
4.1: | 3.0.6-alt2.M41.1 |
4.0: | 3.0.6-alt1 |
3.0: | 3.0.2-alt1 |
Группа :: Система/Серверы
Пакет: dhcp
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0007-Apply-dhcp-3.0.3-rh-assemble_udp_ip_header.patch.patch
Скачать
Скачать
From 0 Mon Sep 17 00:00:00 2001
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Mon, 15 Oct 2007 23:59:47 +0000
Subject: [PATCH 07] Apply dhcp-3.0.3-rh-assemble_udp_ip_header.patch
diff --git a/dhcp/common/lpf.c b/dhcp/common/lpf.c
index defaced..defaced 100644
--- a/dhcp/common/lpf.c
+++ b/dhcp/common/lpf.c
@@ -301,6 +301,7 @@ static void lpf_tr_filter_setup (info)
/* Set up the bpf filter program structure. This is defined in
bpf.c */
+ memset(&p, '\0', sizeof p);
p.len = dhcp_bpf_tr_filter_len;
p.filter = dhcp_bpf_tr_filter;
diff --git a/dhcp/common/packet.c b/dhcp/common/packet.c
index defaced..defaced 100644
--- a/dhcp/common/packet.c
+++ b/dhcp/common/packet.c
@@ -145,6 +145,7 @@ void assemble_udp_ip_header (interface, buf, bufix,
memset (&ip, 0, sizeof ip);
/* Fill out the IP header */
+ memset( &ip, '\0', sizeof ip);
IP_V_SET (&ip, 4);
IP_HL_SET (&ip, 20);
ip.ip_tos = IPTOS_LOWDELAY;