aboutsummaryrefslogtreecommitdiff
path: root/plugins-root/check_dhcp.c
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2016-12-07 21:10:08 +0100
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2016-12-07 21:10:08 +0100
commit2724eb00de0f685615cdf9f0e492ef3dbe323433 (patch)
treee0cfbd348431f8742bb930416041288293c7c15e /plugins-root/check_dhcp.c
parentbc4842ab7d0a378a98ee6d37e42bb928c51f9e41 (diff)
parent21e57d31d9ab0f9f8db09b10c9c5cad26f54764c (diff)
downloadmonitoring-plugins-2724eb00de0f685615cdf9f0e492ef3dbe323433.tar.gz
Merge branch 'pr/1454'
* pr/1454: NEWS: Mention check_dhcp fix properly remove MSG_PEEK in check_dhcp.c. Fixes #1450.
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 88b7ca10..f4c2dafd 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -693,7 +693,7 @@ int receive_dhcp_packet(void *buffer, int buffer_size, int sock, int timeout, st
else{
bzero(&source_address,sizeof(source_address));
address_size=sizeof(source_address);
- recv_result=recvfrom(sock,(char *)buffer,buffer_size,MSG_PEEK,(struct sockaddr *)&source_address,&address_size);
+ recv_result=recvfrom(sock,(char *)buffer,buffer_size,0,(struct sockaddr *)&source_address,&address_size);
if(verbose)
printf("recv_result: %d\n",recv_result);