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

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


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3ff0d36ad4b1a278046e6e0f789753c523e751c2
      https://github.com/OpenSIPS/opensips/commit/3ff0d36ad4b1a278046e6e0f789753c523e751c2
  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.

(cherry picked from commit cefc071606b52aefffa2967adf8b5846878c3296)





More information about the Devel mailing list