]> granicus.if.org Git - icinga2/commitdiff
Fix stack overflow in IdoPgsqlConnection::InternalExecuteQuery.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 5 Feb 2014 13:58:54 +0000 (14:58 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 5 Feb 2014 13:59:11 +0000 (14:59 +0100)
Fixes #5610

components/db_ido_pgsql/idopgsqlconnection.cpp

index 3abeb2beda00cebb284f0cc1e060769d9dce6d4c..936daa898c9e9026af7f5a78cb019854a3f8ff21 100644 (file)
@@ -485,7 +485,7 @@ void IdoPgsqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
 
        bool upsert = false;
 
-       if ((query.Type & DbQueryInsert) && (query.Type & DbQueryUpdate)) {
+       if ((type & DbQueryInsert) && (type & DbQueryUpdate)) {
                bool hasid = false;
 
                ASSERT(query.Object);