diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-12-21 11:12:54 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-12-21 11:12:54 +0000 |
commit | 25be77d69c78e8b0db53f9cc20e062d06d60f510 (patch) | |
tree | 6c22c510ea5f90f908f5ba56f121455486eb705d /net-mgmt/nagios-plugins/files | |
parent | Update to 2.2. (diff) |
Update to 2.1.4.
Reported by: portscout
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=429067
Diffstat (limited to 'net-mgmt/nagios-plugins/files')
-rw-r--r-- | net-mgmt/nagios-plugins/files/patch-plugins_netutils.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins_netutils.c b/net-mgmt/nagios-plugins/files/patch-plugins_netutils.c deleted file mode 100644 index b211deaf4615..000000000000 --- a/net-mgmt/nagios-plugins/files/patch-plugins_netutils.c +++ /dev/null @@ -1,46 +0,0 @@ ---- plugins/netutils.c.orig 2016-08-01 16:27:46 UTC -+++ plugins/netutils.c -@@ -179,7 +179,7 @@ int - np_net_connect (const char *host_name, int port, int *sd, int proto) - { - struct addrinfo hints; -- struct addrinfo *res; -+ struct addrinfo *res, *res0; - struct sockaddr_un su; - char port_str[6], host[MAX_HOST_ADDRESS_LENGTH]; - size_t len; -@@ -206,7 +206,7 @@ np_net_connect (const char *host_name, i - memcpy (host, host_name, len); - host[len] = '\0'; - snprintf (port_str, sizeof (port_str), "%d", port); -- result = getaddrinfo (host, port_str, &hints, &res); -+ result = getaddrinfo (host, port_str, &hints, &res0); - - if (result != 0) { - if (result == EAI_NONAME) -@@ -215,6 +215,7 @@ np_net_connect (const char *host_name, i - printf ("%s\n", gai_strerror (result)); - return STATE_UNKNOWN; - } -+ res = res0; - - while (res) { - /* attempt to create a socket */ -@@ -222,7 +223,7 @@ np_net_connect (const char *host_name, i - - if (*sd < 0) { - printf ("%s\n", _("Socket creation failed")); -- freeaddrinfo (res); -+ freeaddrinfo (res0); - return STATE_UNKNOWN; - } - -@@ -245,7 +246,7 @@ np_net_connect (const char *host_name, i - close (*sd); - res = res->ai_next; - } -- freeaddrinfo (res); -+ freeaddrinfo (res0); - } - /* else the hostname is interpreted as a path to a unix socket */ - else { |