summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 4dcf1a5a..8e45e88d 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -838,9 +838,9 @@ redir (char *pos, char *status_line)
838 else if (sscanf (pos, HD5, url) == 1) { 838 else if (sscanf (pos, HD5, url) == 1) {
839 /* relative url */ 839 /* relative url */
840 if ((url[0] != '/')) { 840 if ((url[0] != '/')) {
841 if ((x = strrchr(url, '/'))) 841 if ((x = strrchr(server_url, '/')))
842 *x = '\0'; 842 *x = '\0';
843 asprintf (&server_url, "%s/%s", server_url, url); 843 asprintf (&url, "%s/%s", server_url, url);
844 } 844 }
845 i = server_port; 845 i = server_port;
846 strcpy (type, server_type); 846 strcpy (type, server_type);