From: Michael Marley Date: Thu, 23 Apr 2015 12:46:43 +0000 (-0400) Subject: Execute initDbSession() on DB reconnects X-Git-Tag: travis-deploy-test~569^2 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;ds=sidebyside;h=6605882f41331c80f7ac3a6992650a702ec71283;hp=6605882f41331c80f7ac3a6992650a702ec71283;p=quassel.git Execute initDbSession() on DB reconnects Previously, the initDbSession() function would only be run on the initial connect. Since the initDbSession() code in PostgreSQL is used to fix the CVE-2013-4422 SQL Injection bug, this means that Quassel was still vulnerable to that CVE if the PostgreSQL server is restarted or the connection is lost at any point while Quassel is running. This bug also causes the Qt5 psql timezone fix to stop working after a reconnect. The fix is to disable Qt's automatic reconnecting, check the connection status ourselves, and reconnect if necessary, executing the initDbSession() function afterward. ---