[OpenSIPS-Devel] [OpenSIPS/opensips] d7ec0f: rest_client: Fix memory allocation race condition

Liviu Chircu liviu at opensips.org
Tue Dec 6 05:29:59 EST 2016


  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d7ec0f3454f2af149284ef7d7ab8bbc33da19e25
      https://github.com/OpenSIPS/opensips/commit/d7ec0f3454f2af149284ef7d7ab8bbc33da19e25
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2016-12-06 (Tue, 06 Dec 2016)

  Changed paths:
    M modules/rest_client/rest_client.c

  Log Message:
  -----------
  rest_client: Fix memory allocation race condition

libcurl actually creates a thread to do each blocking request, so the
memory allocation functions we provide it with must be thread safe.

Thanks to Agalya Ramachandran for helping troubleshoot this bug

(cherry picked from commit 900f6c996c697bf913efb7843d915411b5da930c)

Conflicts:
	modules/rest_client/rest_client.c




More information about the Devel mailing list