summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7c8db65)
raw | patch | inline | side by side (parent: 7c8db65)
author | Holger Weiss <hweiss@users.sourceforge.net> | |
Fri, 15 Jun 2007 18:31:37 +0000 (18:31 +0000) | ||
committer | Holger Weiss <hweiss@users.sourceforge.net> | |
Fri, 15 Jun 2007 18:31:37 +0000 (18:31 +0000) |
so use `server_address' instead. Fixes a possible segfault when
following redirects to relative URLs (reported by Ingo Lantschner).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1740 f882894a-f735-0410-b71e-b25c423dba1c
following redirects to relative URLs (reported by Ingo Lantschner).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1740 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 86e18dece070bf9fa95aabfc9ceaa6527a13d11a..f2f7a18a25993870a6c52ec2ef00355c85042dbb 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
if (display_html == TRUE)
printf ("<A HREF=\"%s://%s:%d%s\" target=\"_blank\">",
- use_ssl ? "https" : "http", host_name,
+ use_ssl ? "https" : "http", server_address,
server_port, server_url);
/* initialize alarm signal handling, set socket timeout, start timer */
}
i = server_port;
strcpy (type, server_type);
- strcpy (addr, host_name);
+ strcpy (addr, server_address);
}
else {