diff options
author | Harald Koch <chk@anemone.chk.cfrq.net> | 2016-12-07 13:11:40 -0500 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-12-07 21:16:47 +0100 |
commit | c7f7959dd90e2b82bb1904a02e11f4b5e0f35709 (patch) | |
tree | fca563347799b43059d3b4f3223993df3ba878a8 /plugins-root | |
parent | db93deea319e54aea52618108adfebdfab1f1a26 (diff) | |
download | monitoring-plugins-c7f7959dd90e2b82bb1904a02e11f4b5e0f35709.tar.gz |
properly remove MSG_PEEK in check_dhcp.c. Fixes #1450.
Diffstat (limited to 'plugins-root')
-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 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 | |||
693 | else{ | 693 | else{ |
694 | bzero(&source_address,sizeof(source_address)); | 694 | bzero(&source_address,sizeof(source_address)); |
695 | address_size=sizeof(source_address); | 695 | address_size=sizeof(source_address); |
696 | recv_result=recvfrom(sock,(char *)buffer,buffer_size,MSG_PEEK,(struct sockaddr *)&source_address,&address_size); | 696 | recv_result=recvfrom(sock,(char *)buffer,buffer_size,0,(struct sockaddr *)&source_address,&address_size); |
697 | if(verbose) | 697 | if(verbose) |
698 | printf("recv_result: %d\n",recv_result); | 698 | printf("recv_result: %d\n",recv_result); |
699 | 699 | ||