]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_pgsql: Fix thread safety problems 77/5077/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:56:17 +0000 (15:56 -0500)
commit3de68bb49215715d216e85f16ae5471f3ead6db3
tree63f88b0863ebf57a716a5f0c5199e4f5d0124d86
parentfcd4fa8dff7c01233e09b40b490fdaf2b521f319
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