]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_pgsql: Fix thread safety problems 76/5076/1
authorSean Bright <sean.bright@gmail.com>
Thu, 23 Feb 2017 20:48:53 +0000 (15:48 -0500)
committerSean Bright <sean.bright@gmail.com>
Thu, 23 Feb 2017 20:48:53 +0000 (15:48 -0500)
commitda0cadd100a136038827f3be706372cd16134dcd
tree62ff9d850bfcc9a837c1b21818d7163297b90ac8
parent803afec45ff61824c876e919cb2be467e33cb83d
res_config_pgsql: Fix thread safety problems

* A missing AST_LIST_UNLOCK() in find_table()

* The ESCAPE_STRING() macro uses pgsqlConn under the hood and we were
  not consistently locking before calling it.

* There were a handful of other places where pgsqlConn was accessed
  directly without appropriate locking.

Change-Id: Iea63f0728f76985a01e95b9912c3c5c6065836ed
res/res_config_pgsql.c