]> git.sur5r.net Git - bacula/bacula/commit
Fix bug #1943 no message storage on closed database connection.
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 6 Nov 2012 14:22:26 +0000 (15:22 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:02 +0000 (14:51 +0200)
commitfcfb2ef3a9c6b2b4904165c1612903bf443a5865
tree801a0cefc6a61f46c2f03b2de1620fa14fdb3551
parentaa43f8eee701e5ffd8144b1ec3868be1ab411cf3
Fix bug #1943 no message storage on closed database connection.

Bacula director crashes if it reaches the max number connections to
MySQL server. (Or any other database) as it tries to store the
failure to connect to the database in the database over a non
connected database connection. Things like mysql_real_escape_string
which is used in that code path depend on a connected database
connection which we don't have.
bacula/src/lib/message.c