[icinga-checkins] icinga.org: icinga-core/r1.5: idoutils: fix SEGV in ido2db_query_statehistory caused by wrong index introduced with new clob functions for #1362

git at icinga.org git at icinga.org
Wed Aug 3 20:37:30 CEST 2011


Module: icinga-core
Branch: r1.5
Commit: c22fc22fc8f647b4427fce331da4976b342979f6
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=c22fc22fc8f647b4427fce331da4976b342979f6

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Wed Aug  3 15:40:29 2011 +0200

idoutils: fix SEGV in ido2db_query_statehistory caused by wrong index introduced with new clob functions for #1362
refs #1362

---

 module/idoutils/src/dbhandlers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/module/idoutils/src/dbhandlers.c b/module/idoutils/src/dbhandlers.c
index d3d7f35..b99fbcb 100644
--- a/module/idoutils/src/dbhandlers.c
+++ b/module/idoutils/src/dbhandlers.c
@@ -4863,7 +4863,7 @@ int ido2db_handle_statechangedata(ido2db_idi *idi) {
         //bind clob
 	lob_i=OCI_LobCreate(idi->dbinfo.oci_connection,OCI_CLOB);
 	ido2db_log_debug_info(IDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_query_statehistory() bind clob\n");
-	result=ido2db_oci_bind_clob(idi->dbinfo.oci_statement_statehistory,":X13",*(char **)data[4],&lob_i);
+	result=ido2db_oci_bind_clob(idi->dbinfo.oci_statement_statehistory,":X13",*(char **)data[12],&lob_i);
 	if (result==IDO_OK) {
 	/* execute statement */
 		result=OCI_Execute(idi->dbinfo.oci_statement_statehistory)?IDO_OK:IDO_ERROR;





More information about the icinga-checkins mailing list