From: Gunnar Beutner Date: Wed, 5 Feb 2014 13:58:54 +0000 (+0100) Subject: Fix stack overflow in IdoPgsqlConnection::InternalExecuteQuery. X-Git-Tag: v0.0.7~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6d405b4a4c89c8d7a2d0812ed9cacaa90872ec1;p=icinga2 Fix stack overflow in IdoPgsqlConnection::InternalExecuteQuery. Fixes #5610 --- diff --git a/components/db_ido_pgsql/idopgsqlconnection.cpp b/components/db_ido_pgsql/idopgsqlconnection.cpp index 3abeb2bed..936daa898 100644 --- a/components/db_ido_pgsql/idopgsqlconnection.cpp +++ b/components/db_ido_pgsql/idopgsqlconnection.cpp @@ -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);