[OpenSIPS-Devel] [OpenSIPS/opensips] cefc07: sql_cacher: fix concurrent use of $sql_cached_value

Vlad Pătrașcu noreply at github.com
Tue Oct 29 13:11:31 EDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cefc071606b52aefffa2967adf8b5846878c3296
      https://github.com/OpenSIPS/opensips/commit/cefc071606b52aefffa2967adf8b5846878c3296
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2019-10-29 (Tue, 29 Oct 2019)

  Changed paths:
    M modules/sql_cacher/sql_cacher.c
    M modules/sql_cacher/sql_cacher.h

  Log Message:
  -----------
  sql_cacher: fix concurrent use of $sql_cached_value

For example, this fixes issues when calling a script function with multiple
$sql_cached_value params as PV specs. The function would get the same static
buffer that would be progressively extended and overwritten.





More information about the Devel mailing list