Преглед изворни кода

Fix issue referenced in #484 - literal 'server_type' is strcpy'd instead of the variable

madlohe пре 6 година
родитељ
комит
5ace6c4b1c
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      THANKS.in
  2. 1 1
      plugins/check_http.c

+ 1 - 0
THANKS.in

@@ -412,4 +412,5 @@ William Leibzon
 William Pietri
 Wolfgang Rosenauer
 Yannick Charton
+Yusuke Hayashi (yusukeh0710)
 Ziya Suzen

+ 1 - 1
plugins/check_http.c

@@ -1589,7 +1589,7 @@ redir (char *pos, char *status_line)
             if(use_ssl)
                 strcpy (type,"https");
             else
-                strcpy (type,"server_type");
+                strcpy (type,server_type);
             xasprintf(&url, "/%s", url);
             use_ssl = server_type_check (type);
             i = server_port_check (use_ssl);