[OpenSIPS/opensips] ec89b7: rr: Fix a buffer mgm bug during strict routing cal...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OpenSIPS/opensips] ec89b7: rr: Fix a buffer mgm bug during strict routing cal...

Bogdan Andrei IANCU
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ec89b78667430da51e4146bc7f2514f68e9d21a9
      https://github.com/OpenSIPS/opensips/commit/ec89b78667430da51e4146bc7f2514f68e9d21a9
  Author: Liviu Chircu <[hidden email]>
  Date:   2019-02-20 (Wed, 20 Feb 2019)

  Changed paths:
    M modules/rr/loose.c

  Log Message:
  -----------
  rr: Fix a buffer mgm bug during strict routing callbacks

While doing strict routing (e.g. the R-URI host is a local domain) and
executing the module callbacks, the rr module would provide some bogus
memory pointer as the result of the rr_api.get_route_param() function.

Although opensips would not crash due to the dangling pointer residing
in pkg memory, some callbacks would misbehave (e.g. uac_auth() would
fail to adjust the outbound ACK CSeq, since it cannot locate the ";aci"
Route header field parameter within the dangling pkg area).

Related to #1613



_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel