Skip to content
Snippets Groups Projects
  • Ben Ford's avatar
    e666051d
    res_pjsip_session: Check for removed stream state. · e666051d
    Ben Ford authored
    When a sip session is refreshed, the stream topology is looped
    through, checking each stream for compatible formats. This would
    cause a crash if the stream state was AST_STREAM_STATE_REMOVED,
    since the formats would never be set for this stream, causing
    a NULL value to be returned from ast_stream_get_formats. This
    commit adds a check for streams with removed states.
    
    Also removed a stray semicolon.
    
    Change-Id: Ic86f8b65a4a26a60885b28b8b1a0b22e1b471d42
    e666051d
    History
    res_pjsip_session: Check for removed stream state.
    Ben Ford authored
    When a sip session is refreshed, the stream topology is looped
    through, checking each stream for compatible formats. This would
    cause a crash if the stream state was AST_STREAM_STATE_REMOVED,
    since the formats would never be set for this stream, causing
    a NULL value to be returned from ast_stream_get_formats. This
    commit adds a check for streams with removed states.
    
    Also removed a stray semicolon.
    
    Change-Id: Ic86f8b65a4a26a60885b28b8b1a0b22e1b471d42