]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/dnsmasq/0097-Select-correct-DHCP-context-when-in-PXE-bootserver-m.patch
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next
[ipfire-2.x.git] / src / patches / dnsmasq / 0097-Select-correct-DHCP-context-when-in-PXE-bootserver-m.patch
CommitLineData
efbd3a9a
MT
1From 7f8565b94ca52dde31f7688a9f9a0cc611d9dae3 Mon Sep 17 00:00:00 2001
2From: Simon Kelley <simon@thekelleys.org.uk>
3Date: Tue, 19 May 2015 23:01:27 +0100
697b4f04 4Subject: [PATCH 097/113] Select correct DHCP context when in PXE bootserver
efbd3a9a
MT
5 mode.
6
7---
8 src/rfc2131.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/src/rfc2131.c b/src/rfc2131.c
12index 70d1e59530ad..e602a21585c9 100644
13--- a/src/rfc2131.c
14+++ b/src/rfc2131.c
15@@ -805,7 +805,7 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
16 if (service->type == type)
17 break;
18
19- if (!service || !service->basename)
20+ if (!service || !service->basename || !(context = narrow_context(context, mess->ciaddr, tagif_netid)))
21 return 0;
22
23 clear_packet(mess, end);
24--
252.1.0
26