From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/440895-check_dhcp.fix-option-parsing.diff | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 web/attachments/440895-check_dhcp.fix-option-parsing.diff (limited to 'web/attachments/440895-check_dhcp.fix-option-parsing.diff') 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 @@ +diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c +index 2a1875c..b1a7713 100644 +--- a/plugins-root/check_dhcp.c ++++ b/plugins-root/check_dhcp.c +@@ -839,8 +839,7 @@ int add_dhcp_offer(struct in_addr source,dhcp_packet *offer_packet){ + /* process all DHCP options present in the packet */ + for(x=4;xoptions[x]==-1 || (int)offer_packet->options[x]==0) ++ if((int)offer_packet->options[x]==-1) + break; + + /* get option type */ -- cgit v1.2.3-74-g34f1