summaryrefslogtreecommitdiffstats
path: root/plugins-root/check_dhcp.c
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.org>2014-06-28 20:14:02 (GMT)
committerSven Nierlein <sven@nierlein.org>2014-06-28 20:14:02 (GMT)
commitea8ab2002cd72f657582f4dd0a0580bd10131401 (patch)
tree43245ea6bf7f3e7cd0e6ca344dfc94c68189cca2 /plugins-root/check_dhcp.c
parente566021a54c500aa2ee0f17bfe4f95d1fd1be243 (diff)
parent9123f6146c5dd3285d8fb78cf3a8cd52bad17ec1 (diff)
downloadmonitoring-plugins-ea8ab2002cd72f657582f4dd0a0580bd10131401.tar.gz
Merge pull request #1263 from waja/coverity_fixes
Serveral coverity fixes from nagios-plugins
Diffstat (limited to 'plugins-root/check_dhcp.c')
-rw-r--r--plugins-root/check_dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index 1ec5c39..b69a10d 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -837,7 +837,7 @@ int add_dhcp_offer(struct in_addr source,dhcp_packet *offer_packet){
837 return ERROR; 837 return ERROR;
838 838
839 /* process all DHCP options present in the packet */ 839 /* process all DHCP options present in the packet */
840 for(x=4;x<MAX_DHCP_OPTIONS_LENGTH;){ 840 for(x=4;x<MAX_DHCP_OPTIONS_LENGTH-1;){
841 841
842 if((int)offer_packet->options[x]==-1) 842 if((int)offer_packet->options[x]==-1)
843 break; 843 break;