diff options
author | Sven Nierlein <sven@nierlein.org> | 2014-06-28 22:14:02 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2014-06-28 22:14:02 +0200 |
commit | ea8ab2002cd72f657582f4dd0a0580bd10131401 (patch) | |
tree | 43245ea6bf7f3e7cd0e6ca344dfc94c68189cca2 /plugins-root/check_dhcp.c | |
parent | e566021a54c500aa2ee0f17bfe4f95d1fd1be243 (diff) | |
parent | 9123f6146c5dd3285d8fb78cf3a8cd52bad17ec1 (diff) | |
download | monitoring-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index 1ec5c396..b69a10da 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; |