[OpenSIPS-Devel] [OpenSIPS/opensips] 7dfe28: dialog: Fix a race condition on mid-dlg Contact up...
    Liviu Chircu 
    noreply at github.com
       
    Wed Jan  4 16:42:56 UTC 2023
    
    
  
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7dfe2857eef8e109e2c984867eb5e80193f220e1
      https://github.com/OpenSIPS/opensips/commit/7dfe2857eef8e109e2c984867eb5e80193f220e1
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2023-01-04 (Wed, 04 Jan 2023)
  Changed paths:
    M modules/dialog/dlg_handlers.c
  Log Message:
  -----------
  dialog: Fix a race condition on mid-dlg Contact updates
The "contact update on mid-dialog 2xx reply" logic may be invoked in
parallel, in case two simultaneous UPDATE transactions are being
processed, for example.  This patch adds locking, to prevent a possible
abort due to "double free" while updating the Contact.
Also fix a small bug where the dialog is still flagged with
DLG_FLAG_CHANGED, despite the malloc() failing during Contact update.
    
    
More information about the Devel
mailing list