summaryrefslogtreecommitdiffstats
path: root/web/attachments/69716-check_http.c.diff
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/69716-check_http.c.diff')
-rw-r--r--web/attachments/69716-check_http.c.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/web/attachments/69716-check_http.c.diff b/web/attachments/69716-check_http.c.diff
new file mode 100644
index 0000000..503f10c
--- /dev/null
+++ b/web/attachments/69716-check_http.c.diff
@@ -0,0 +1,24 @@
1Index: check_http.c
2===================================================================
3RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
4retrieving revision 1.54
5diff -u -r1.54 check_http.c
6--- check_http.c 15 Sep 2003 05:03:47 -0000 1.54
7+++ check_http.c 4 Dec 2003 16:00:24 -0000
8@@ -837,11 +837,13 @@
9 /* URI_PATH */
10 else if (sscanf (pos, HD5, url) == 1) {
11 /* relative url */
12+
13 if ((url[0] != '/')) {
14- if ((x = strrchr(url, '/')))
15+ if ((x = strrchr(server_url, '/')))
16 *x = '\0';
17- asprintf (&server_url, "%s/%s", server_url, url);
18+ asprintf (&url, "%s/%s", server_url, url);
19 }
20+
21 i = server_port;
22 strcpy (type, server_type);
23 strcpy (addr, host_name);
24