[OpenSIPS-Devel] [OpenSIPS/opensips] d4be27: dialog: Fix a very rare race condition

Liviu Chircu noreply at github.com
Thu Sep 26 12:56:03 EDT 2019


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d4be27178f7cb5bc09eb45b331e4cc4a61261444
      https://github.com/OpenSIPS/opensips/commit/d4be27178f7cb5bc09eb45b331e4cc4a61261444
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-09-26 (Thu, 26 Sep 2019)

  Changed paths:
    M modules/dialog/dlg_profile.c

  Log Message:
  -----------
  dialog: Fix a very rare race condition

A dlg->h_id with value 0 is perfectly possible, see link_dlg_unsafe():

    dlg->h_id = d_entry->next_id++;

It should not be treated as some special case.





More information about the Devel mailing list