aboutsummaryrefslogtreecommitdiff
path: root/plugins-root
diff options
context:
space:
mode:
authorGravatar Harald Koch <chk@anemone.chk.cfrq.net> 2016-12-07 13:11:40 -0500
committerGravatar Harald Koch <chk@anemone.chk.cfrq.net> 2016-12-07 13:11:40 -0500
commit9dd09ec3318bc1a31ce69a92bdcad342654f18d5 (patch)
tree6bd2b2462564926006af425badfab61eb9fd87a5 /plugins-root
parentbc4842ab7d0a378a98ee6d37e42bb928c51f9e41 (diff)
downloadmonitoring-plugins-9dd09ec3318bc1a31ce69a92bdcad342654f18d5.tar.gz
properly remove MSG_PEEK in check_dhcp.c. Fixes #1450.
Diffstat (limited to 'plugins-root')
-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);