[icinga-checkins] icinga.org: icinga-core/master: fix contactnotification data array

git at icinga.org git at icinga.org
Sat Jan 30 02:44:48 CET 2010


Module: icinga-core
Branch: master
Commit: 384e1268acb60934d12dbe4c2d482fbd92015d16
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=384e1268acb60934d12dbe4c2d482fbd92015d16

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Sat Jan 30 02:44:30 2010 +0100

fix contactnotification data array

command args were not provided causing query fault

fixes #263

---

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

diff --git a/THANKS b/THANKS
index a5eef78..49f1270 100644
--- a/THANKS
+++ b/THANKS
@@ -190,6 +190,7 @@ in various ways.  If we missed your name, let us know.
 * Rob Patrick
 * Remi Paulmier
 * Alex Peeters
+* Bruce Pennypacker
 * James "Showkilr" Peterson
 * Cary Petterborg
 * Bill Pier
diff --git a/module/idoutils/src/dbhandlers.c b/module/idoutils/src/dbhandlers.c
index f4032a9..cf577bf 100644
--- a/module/idoutils/src/dbhandlers.c
+++ b/module/idoutils/src/dbhandlers.c
@@ -1776,7 +1776,7 @@ int ndo2db_handle_contactnotificationmethoddata(ndo2db_idi *idi) {
 			idi->buffered_input[NDO_DATA_COMMANDNAME], NULL, &command_id);
 
 	/* save entry to db */
-        void *data[7];
+        void *data[8];
         data[0] = (void *) &idi->dbinfo.instance_id;
         data[1] = (void *) &idi->dbinfo.last_contact_notification_id;
         data[2] = (void *) &ts[0];
@@ -1784,6 +1784,7 @@ int ndo2db_handle_contactnotificationmethoddata(ndo2db_idi *idi) {
         data[4] = (void *) &ts[1];
         data[5] = (void *) &end_time.tv_usec;
         data[6] = (void *) &command_id;
+        data[7] = (void *) &es[0];
 
         result = ido2db_query_insert_or_update_contactnotificationmethoddata_add(idi, data);
 





More information about the icinga-checkins mailing list