[icinga-checkins] icinga.org: icinga-core/test/cgis: classic ui: fixed Truncated HTML table when displaying outages in outages.cgi #2323

git at icinga.org git at icinga.org
Tue Apr 3 09:26:31 CEST 2012


Module: icinga-core
Branch: test/cgis
Commit: 2191fc5581b24f853a4f7a1b7c87953de440326f
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=2191fc5581b24f853a4f7a1b7c87953de440326f

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Wed Mar 14 00:09:32 2012 +0100

classic ui: fixed Truncated HTML table when displaying outages in outages.cgi #2323

refs: #2323

Was my mistake. Forgot to duplicate string. Ended up in a double free.

---

 Changelog     |    1 +
 cgi/outages.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index d239555..1542b35 100644
--- a/Changelog
+++ b/Changelog
@@ -43,6 +43,7 @@ FIXES
 * classic ui: fixed reset forms on return after submitting command #2117
 * classic ui: Change Excel icon to odf spreadsheet icon #2391
 * classic ui: fixed Availability Records Break if JavaScript is disabled #2412
+* classic ui: fixed Truncated HTML table when displaying outages in outages.cgi #2323
 
 * idoutils: fix ORA-00913 too many values when MERGE INTO eventhandlers #2319
 * idoutils: change standard string escaping for postgresql queries to use the E'foo' notation #1974
diff --git a/cgi/outages.c b/cgi/outages.c
index c55017c..87f962b 100644
--- a/cgi/outages.c
+++ b/cgi/outages.c
@@ -711,7 +711,7 @@ void add_affected_host(char *host_name) {
 	if (new_affected_host == NULL)
 		return;
 
-	new_affected_host->host_name = host_name;
+	new_affected_host->host_name = strdup(host_name);
 
 	/* add the structure to the head of the list in memory */
 	new_affected_host->next = currently_checked_host->affected_hosts;





More information about the icinga-checkins mailing list