[Nagiosplug-checkins] CVS: nagiosplug/plugins netutils.c,1.7,1.8
Jeremy T. Bouse
undrgrid at users.sourceforge.net
Fri Jun 27 11:48:04 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv2069a/plugins
Modified Files:
netutils.c
Log Message:
Modified my_connect to include ai_socktype in the hints to be compliant with
RFC3493 as pointed out by Janos Mohacsi.
Index: netutils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** netutils.c 17 Apr 2003 05:36:20 -0000 1.7
--- netutils.c 27 Jun 2003 18:47:45 -0000 1.8
***************
*** 257,260 ****
--- 257,261 ----
hints.ai_family = PF_UNSPEC;
hints.ai_protocol = proto;
+ hints.ai_socktype = (proto == IPPROTO_UDP) ? SOCK_DGRAM : SOCK_STREAM;
snprintf (port_str, sizeof (port_str), "%d", port);
More information about the Commits
mailing list