summaryrefslogtreecommitdiffstats
path: root/web/attachments/440895-check_dhcp.fix-option-parsing.diff
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/440895-check_dhcp.fix-option-parsing.diff')
-rw-r--r--web/attachments/440895-check_dhcp.fix-option-parsing.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/attachments/440895-check_dhcp.fix-option-parsing.diff b/web/attachments/440895-check_dhcp.fix-option-parsing.diff
new file mode 100644
index 0000000..d4ffe87
--- /dev/null
+++ b/web/attachments/440895-check_dhcp.fix-option-parsing.diff
@@ -0,0 +1,14 @@
1diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
2index 2a1875c..b1a7713 100644
3--- a/plugins-root/check_dhcp.c
4+++ b/plugins-root/check_dhcp.c
5@@ -839,8 +839,7 @@ int add_dhcp_offer(struct in_addr source,dhcp_packet *offer_packet){
6 /* process all DHCP options present in the packet */
7 for(x=4;x<MAX_DHCP_OPTIONS_LENGTH;){
8
9- /* end of options (0 is really just a pad, but bail out anyway) */
10- if((int)offer_packet->options[x]==-1 || (int)offer_packet->options[x]==0)
11+ if((int)offer_packet->options[x]==-1)
12 break;
13
14 /* get option type */