[OpenSIPS-Devel] [OpenSIPS/opensips] e162f5: usrloc: make next_hop point within the shared buffer

Răzvan Crainea noreply at github.com
Fri Mar 29 12:38:26 EDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e162f5f1024f8dad4bf5554600aa25183fcf92fc
      https://github.com/OpenSIPS/opensips/commit/e162f5f1024f8dad4bf5554600aa25183fcf92fc
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2019-03-29 (Fri, 29 Mar 2019)

  Changed paths:
    M modules/usrloc/dlist.c

  Log Message:
  -----------
  usrloc: make next_hop point within the shared buffer

Before this commit, the `next_hop` fields returned by
`get_domain_*_ucontacts()` were pointing to a shared memory, that might
dissapear when the contact is gone, resulting in a crash.
This patch re-points the `next_hop.name` field within the buffer.

Crash reported in ticket #1652





More information about the Devel mailing list