Skip to content
Snippets Groups Projects
  • Corey Farrell's avatar
    53658a14
    Fix unsafe uses of ast_context pointers. · 53658a14
    Corey Farrell authored
    Although ast_context_find, ast_context_find_or_create and
    ast_context_destroy perform locking of the contexts table,
    any context pointer can become invalid at any time that the
    contexts table is unlocked. This change adds locking around
    all complete operations involving these functions.
    
    Places where ast_context_find was followed by ast_context_destroy
    have been replaced with calls ast_context_destroy_by_name.
    
    ASTERISK-25094 #close
    Reported by: Corey Farrell
    
    Change-Id: I1866b6787730c9c4f3f836b6133ffe9c820734fa
    53658a14
    History
    Fix unsafe uses of ast_context pointers.
    Corey Farrell authored
    Although ast_context_find, ast_context_find_or_create and
    ast_context_destroy perform locking of the contexts table,
    any context pointer can become invalid at any time that the
    contexts table is unlocked. This change adds locking around
    all complete operations involving these functions.
    
    Places where ast_context_find was followed by ast_context_destroy
    have been replaced with calls ast_context_destroy_by_name.
    
    ASTERISK-25094 #close
    Reported by: Corey Farrell
    
    Change-Id: I1866b6787730c9c4f3f836b6133ffe9c820734fa